diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-25 13:38:32 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-10-25 13:38:32 +0000 |
commit | fd6337f2c940aa3aae42eb9952b32ca12f8b757d (patch) | |
tree | a50a07b2919f34ba48baec9378124533d8f92bb3 /hardinfo2/shell.c | |
parent | 7b773f5c8225479e0748db69b9ac7f92b127890c (diff) |
Fix report output format option.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r-- | hardinfo2/shell.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index aa8477de..40cb8d58 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -103,6 +103,18 @@ void shell_action_set_enabled(const gchar *action_name, gboolean setting) } } +gboolean shell_action_get_enabled(const gchar *action_name) +{ + GtkAction *action; + + action = gtk_action_group_get_action(shell->action_group, action_name); + if (action) { + return gtk_action_get_sensitive(action); + } + + return FALSE; +} + void shell_set_side_pane_visible(gboolean setting) { if (setting) |