[glade3] * plugins/gtk+/glade-gtk.c: Added accelerator and tooltip-text properties to menu items and tool



commit e1fd5a3d402459dc8d28a193117bb0828330b2d9
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Fri Jan 7 22:46:37 2011 +0900

    	* plugins/gtk+/glade-gtk.c: Added accelerator and tooltip-text properties
    	  to menu items and toolitems in the menu editor (fixes bug 510083).

 ChangeLog                |    3 +++
 plugins/gtk+/glade-gtk.c |   23 +++++++++++++++++++----
 2 files changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c5ab428..747ef10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,9 @@
 	* plugins/gtk+/glade-model-data.c: Removed sequential editing mode, avoid
 	crashers when focus/start-editing next cell.
 
+	* plugins/gtk+/glade-gtk.c: Added accelerator and tooltip-text properties
+	  to menu items and toolitems in the menu editor (fixes bug 510083).
+
 2011-01-06  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-signal.c: Fixed glade_signal_load() careless mistake after GObjectifying.
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index 87fb9ef..b2e3759 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -6320,6 +6320,10 @@ glade_gtk_toolbar_child_selected (GladeBaseEditor * editor,
   glade_base_editor_add_default_properties (editor, gchild);
 
   glade_base_editor_add_label (editor, _("Properties"));
+  glade_base_editor_add_properties (editor, gchild, FALSE, 
+				    "tooltip-text",
+				    "accelerator", 
+				    NULL);
   glade_base_editor_add_editable (editor, gchild, GLADE_PAGE_GENERAL);
 
   if (type == GTK_TYPE_SEPARATOR_TOOL_ITEM)
@@ -6354,18 +6358,29 @@ glade_gtk_menu_shell_tool_item_child_selected (GladeBaseEditor * editor,
   glade_base_editor_add_label (editor, _("Properties"));
 
   if (type != GTK_TYPE_IMAGE_MENU_ITEM)
-    glade_base_editor_add_properties (editor, gchild, FALSE, "label", "tooltip",
+    glade_base_editor_add_properties (editor, gchild, FALSE, 
+				      "label", 
+				      "tooltip-text",
+				      "accelerator", 
                                       NULL);
+  else
+    glade_base_editor_add_properties (editor, gchild, FALSE, 
+				      "tooltip-text",
+				      "accelerator", 
+				      NULL);
 
   if (type == GTK_TYPE_IMAGE_MENU_ITEM)
     glade_base_editor_add_editable (editor, gchild, GLADE_PAGE_GENERAL);
   else if (type == GTK_TYPE_CHECK_MENU_ITEM)
     glade_base_editor_add_properties (editor, gchild, FALSE,
-                                      "active", "draw-as-radio",
-                                      "inconsistent", NULL);
+                                      "active", 
+				      "draw-as-radio",
+                                      "inconsistent", 
+				      NULL);
   else if (type == GTK_TYPE_RADIO_MENU_ITEM)
     glade_base_editor_add_properties (editor, gchild, FALSE,
-                                      "active", "group", NULL);
+                                      "active", 
+				      "group", NULL);
 }
 
 static void



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