cpw.qulogic.gtk3: 84f2abc2: Add back the More and plugin action menu...
qulogic at pidgin.im
qulogic at pidgin.im
Mon Feb 14 21:41:23 EST 2011
----------------------------------------------------------------------
Revision: 84f2abc2501c34fb226b46effa1713fe0fc7ae01
Parent: 5a380480965863fe5303a11e5b54915402525a55
Author: qulogic at pidgin.im
Date: 02/13/11 01:30:30
Branch: im.pidgin.cpw.qulogic.gtk3
URL: http://d.pidgin.im/viewmtn/revision/info/84f2abc2501c34fb226b46effa1713fe0fc7ae01
Changelog:
Add back the More and plugin action menu entries.
Changes against parent 5a380480965863fe5303a11e5b54915402525a55
patched pidgin/gtkconv.c
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c 68ff1cfd8f9dd1cae1d9a080b3ca54a80a054b2f
+++ pidgin/gtkconv.c 0f97e33a2ed43ad972c10a665e19099eba196c8c
@@ -3411,14 +3411,21 @@ regenerate_options_items(PidginWindow *w
static void
regenerate_options_items(PidginWindow *win)
{
-#if GTK_CHECK_VERSION(2,6,0)
-#else
GtkWidget *menu;
PidginConversation *gtkconv;
GList *list;
+#if GTK_CHECK_VERSION(2,6,0)
+ GtkWidget *more_menu;
gtkconv = pidgin_conv_window_get_active_gtkconv(win);
+ more_menu = gtk_ui_manager_get_widget(win->menu.ui,
+ "/Conversation/ConversationMenu/MoreMenu");
+ gtk_widget_show(more_menu);
+ menu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(more_menu));
+#else
+ gtkconv = pidgin_conv_window_get_active_gtkconv(win);
menu = gtk_item_factory_get_widget(win->menu.item_factory, N_("/Conversation/More"));
+#endif
/* Remove the previous entries */
for (list = gtk_container_get_children(GTK_CONTAINER(menu)); list; )
@@ -3436,7 +3443,6 @@ regenerate_options_items(PidginWindow *w
}
gtk_widget_show_all(menu);
-#endif
}
static void
@@ -3450,8 +3456,6 @@ regenerate_plugins_items(PidginWindow *w
static void
regenerate_plugins_items(PidginWindow *win)
{
-#if GTK_CHECK_VERSION(2,6,0)
-#else
GList *action_items;
GtkWidget *menu;
GList *list;
@@ -3477,7 +3481,12 @@ regenerate_plugins_items(PidginWindow *w
action_items = g_list_delete_link(action_items, action_items);
}
+#if GTK_CHECK_VERSION(2,6,0)
+ item = gtk_ui_manager_get_widget(win->menu.ui, "/Conversation/OptionsMenu");
+ menu = gtk_menu_item_get_submenu(GTK_MENU_ITEM(item));
+#else
menu = gtk_item_factory_get_widget(win->menu.item_factory, N_("/Options"));
+#endif
list = purple_conversation_get_extended_menu(conv);
if (list) {
@@ -3493,7 +3502,6 @@ regenerate_plugins_items(PidginWindow *w
g_signal_connect(G_OBJECT(item), "destroy", G_CALLBACK(remove_from_list), win);
}
g_object_set_data(G_OBJECT(win->window), "plugin-actions", action_items);
-#endif
}
#if 0
More information about the Commits
mailing list