pidgin/gtkconv.c

changeset 35172
dc4dac5b33a4
parent 35165
592be5c74b68
child 35194
9a0203562da5
child 36979
80a6477fd903
equal deleted inserted replaced
35165:592be5c74b68 35172:dc4dac5b33a4
1983 static void 1983 static void
1984 update_typing_deleting(PidginConversation *gtkconv) 1984 update_typing_deleting(PidginConversation *gtkconv)
1985 { 1985 {
1986 gchar *text; 1986 gchar *text;
1987 1987
1988 g_return_val_if_fail(gtkconv != NULL, FALSE); 1988 g_return_if_fail(gtkconv != NULL);
1989 1989
1990 text = gtk_webview_get_body_text(GTK_WEBVIEW(gtkconv->entry)); 1990 text = gtk_webview_get_body_text(GTK_WEBVIEW(gtkconv->entry));
1991 1991
1992 if (*text && strcmp(text, "\n")) 1992 if (*text && strcmp(text, "\n"))
1993 purple_timeout_add(0, (GSourceFunc)update_typing_deleting_cb, gtkconv); 1993 purple_timeout_add(0, (GSourceFunc)update_typing_deleting_cb, gtkconv);
9842 notebook_remove_tab_from_menu_cb(GtkNotebook *notebook, GtkWidget *child, 9842 notebook_remove_tab_from_menu_cb(GtkNotebook *notebook, GtkWidget *child,
9843 guint page_num, PidginWindow *win) 9843 guint page_num, PidginWindow *win)
9844 { 9844 {
9845 GtkWidget *item; 9845 GtkWidget *item;
9846 9846
9847 /* Disconnecting the "child-notify::menu-label" signal. */
9848 g_signal_handlers_disconnect_by_data(child, notebook);
9849
9847 item = g_object_get_data(G_OBJECT(child), "popup-menu-item"); 9850 item = g_object_get_data(G_OBJECT(child), "popup-menu-item");
9848 gtk_container_remove(GTK_CONTAINER(win->notebook_menu), item); 9851 gtk_container_remove(GTK_CONTAINER(win->notebook_menu), item);
9849 } 9852 }
9850 9853
9851 9854

mercurial