aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c12
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)