[devhelp] Mark back and forward toolbar buttons as important (GNOME bug 590209)



commit 637740bd084bf0682d54d009e011469962202f8a
Author: Michael Gratton <mike vee net>
Date:   Thu Aug 27 12:57:58 2009 +0200

    Mark back and forward toolbar buttons as important (GNOME bug 590209)

 src/dh-window.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 8e3f868..5e23f82 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -440,6 +440,11 @@ static const GtkActionEntry actions[] = {
           G_CALLBACK (window_activate_about) },
 };
 
+static const gchar* important_actions[] = {
+        "Back",
+        "Forward"
+};
+
 static void
 window_finalize (GObject *object)
 {
@@ -515,6 +520,12 @@ dh_window_init (DhWindow *window)
                                       G_N_ELEMENTS (actions),
                                       window);
 
+        for (i = 0; i < G_N_ELEMENTS (important_actions); i++) {
+                action = gtk_action_group_get_action (priv->action_group,
+                                                      important_actions[i]);
+                g_object_set (action, "is-important", TRUE, NULL);
+        }
+
         gtk_ui_manager_insert_action_group (priv->manager,
                                             priv->action_group,
                                             0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]