[patch] [bug 461792] don't use same action group name more than once
- From: Christian Persch <chpe gnome org>
- To: nautilus-list gnome org
- Subject: [patch] [bug 461792] don't use same action group name more than once
- Date: Mon, 30 Jul 2007 15:22:41 +0200
Hi;
nautilus inserts two identically named action groups into the same UI
manager; attached patch from
http://bugzilla.gnome.org/show_bug.cgi?id=461792 fixes this. Ok to
commit?
Regards,
Christian
Index: src/nautilus-window-toolbars.c
===================================================================
--- src/nautilus-window-toolbars.c (révision 13025)
+++ src/nautilus-window-toolbars.c (copie de travail)
@@ -184,13 +184,13 @@ nautilus_navigation_window_load_extensio
window->details->extensions_toolbar_action_group);
window->details->extensions_toolbar_action_group = NULL;
}
-
+
merge_id = gtk_ui_manager_new_merge_id (ui_manager);
window->details->extensions_toolbar_merge_id = merge_id;
- action_group = gtk_action_group_new ("ExtensionsMenuGroup");
+ action_group = gtk_action_group_new ("ExtensionsToolbarGroup");
window->details->extensions_toolbar_action_group = action_group;
gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);
- gtk_ui_manager_insert_action_group (ui_manager, action_group, 0);
+ gtk_ui_manager_insert_action_group (ui_manager, action_group, -1);
g_object_unref (action_group); /* owned by ui manager */
items = get_extension_toolbar_items (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]