# HG changeset patch # User Etan Reisner # Date 1130026167 0 # Node ID 89e416ac9ef7c48a77017eaa5085337263c0c1e1 # Parent 8657ad65e257fa2419a928e0c67982672269161e [gaim-migrate @ 14019] Finish up some changes that were made a little while ago and remove the now unused window_ids. committer: Tailor Script diff -r 8657ad65e257 -r 89e416ac9ef7 plugins/notify.c --- a/plugins/notify.c Sat Oct 22 23:56:28 2005 +0000 +++ b/plugins/notify.c Sun Oct 23 00:09:27 2005 +0000 @@ -284,7 +284,7 @@ { GaimGtkConversation *gtkconv = NULL; GaimGtkWindow *gtkwin = NULL; - GSList *window_ids = NULL, *imhtml_ids = NULL, *entry_ids = NULL; + GSList *imhtml_ids = NULL, *entry_ids = NULL; guint id; gtkconv = GAIM_GTK_CONVERSATION(conv); @@ -303,11 +303,11 @@ * gtkwin->notebook->container? */ id = g_signal_connect(G_OBJECT(gtkconv->entry), "focus-in-event", G_CALLBACK(unnotify_cb), conv); - entry_ids = g_slist_append(window_ids, GUINT_TO_POINTER(id)); + entry_ids = g_slist_append(entry_ids, GUINT_TO_POINTER(id)); id = g_signal_connect(G_OBJECT(gtkconv->imhtml), "focus-in-event", G_CALLBACK(unnotify_cb), conv); - imhtml_ids = g_slist_append(window_ids, GUINT_TO_POINTER(id)); + imhtml_ids = g_slist_append(imhtml_ids, GUINT_TO_POINTER(id)); } if (gaim_prefs_get_bool("/plugins/gtk/X11/notify/notify_click")) { @@ -328,7 +328,6 @@ entry_ids = g_slist_append(entry_ids, GUINT_TO_POINTER(id)); } - gaim_conversation_set_data(conv, "notify-window-signals", window_ids); gaim_conversation_set_data(conv, "notify-imhtml-signals", imhtml_ids); gaim_conversation_set_data(conv, "notify-entry-signals", entry_ids); @@ -347,11 +346,6 @@ return; gtkwin = gtkconv->win; - ids = gaim_conversation_get_data(conv, "notify-window-signals"); - for (l = ids; l != NULL; l = l->next) - g_signal_handler_disconnect(gtkwin->window, GPOINTER_TO_INT(l->data)); - g_slist_free(ids); - ids = gaim_conversation_get_data(conv, "notify-imhtml-signals"); for (l = ids; l != NULL; l = l->next) g_signal_handler_disconnect(gtkconv->imhtml, GPOINTER_TO_INT(l->data)); @@ -364,7 +358,6 @@ gaim_conversation_set_data(conv, "notify-message-count", GINT_TO_POINTER(0)); - gaim_conversation_set_data(conv, "notify-window-signals", NULL); gaim_conversation_set_data(conv, "notify-imhtml-signals", NULL); gaim_conversation_set_data(conv, "notify-entry-signals", NULL); }