Commit e1fd5a3d authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

* plugins/gtk+/glade-gtk.c: Added accelerator and tooltip-text properties

	  to menu items and toolitems in the menu editor (fixes bug 510083).
parent d88079b0
......@@ -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.
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment