pidgin/purple-plugin-pack

A couple of fixes:
org.guifications.plugins
2008-09-18, sadrul
b8ccd6f7365a
Parents fd2ae88a9d14
Children 2f842b91d09d
A couple of fixes:
* Includes QuLogic's patch. Fixes #513
* Show the nicksaid icon in existing windows when enabling the plugin.
--- a/nicksaid/nicksaid.c Fri Sep 12 04:15:29 2008 -0400
+++ b/nicksaid/nicksaid.c Thu Sep 18 15:59:45 2008 -0400
@@ -306,8 +306,8 @@
}
gtk_widget_show_all(menu);
- gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0,
- GDK_CURRENT_TIME);
+ gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, event->button,
+ event->time);
return TRUE;
}
@@ -390,6 +390,9 @@
if (w == NULL)
{
w = gtk_event_box_new();
+#if GTK_CHECK_VERSION(2,4,0)
+ gtk_event_box_set_visible_window(GTK_EVENT_BOX(w), TRUE);
+#endif
gtk_container_add(GTK_CONTAINER(w),
gtk_image_new_from_stock(PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW, GTK_ICON_SIZE_MENU));
pidgin_menu_tray_append(PIDGIN_MENU_TRAY(win->menu.tray), w, "Nicksaid");
@@ -402,7 +405,7 @@
}
static void
-update_menu_tray(PurpleConversation *conv, gpointer null)
+update_menu_tray(PurpleConversation *conv)
{
PidginConversation *gtkconv;
PidginWindow *win;
@@ -420,9 +423,9 @@
icon = get_tray_icon_for_window(win);
if (purple_conversation_get_type(conv) != PURPLE_CONV_TYPE_CHAT)
- gtk_widget_hide(icon);
+ gtk_widget_hide_all(icon);
else
- gtk_widget_show(icon);
+ gtk_widget_show_all(icon);
}
static void
@@ -543,6 +546,8 @@
purple_prefs_connect_callback(plugin, PREF_HLWORDS,
(PurplePrefCallback)construct_list, NULL);
+ purple_conversation_foreach(update_menu_tray);
+
return TRUE;
}