From fd6337f2c940aa3aae42eb9952b32ca12f8b757d Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 25 Oct 2006 13:38:32 +0000 Subject: Fix report output format option. --- hardinfo2/shell.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hardinfo2/shell.c') 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) -- cgit v1.2.3