pidgin/gtkconv.c

branch
soc.2013.gobjectification.plugins
changeset 36979
80a6477fd903
parent 36975
b683d24ef1d7
parent 35172
dc4dac5b33a4
child 37015
28ee14bbe0ab
equal deleted inserted replaced
36978:f184f7b4f11a 36979:80a6477fd903
1986 static void 1986 static void
1987 update_typing_deleting(PidginConversation *gtkconv) 1987 update_typing_deleting(PidginConversation *gtkconv)
1988 { 1988 {
1989 gchar *text; 1989 gchar *text;
1990 1990
1991 g_return_val_if_fail(gtkconv != NULL, FALSE); 1991 g_return_if_fail(gtkconv != NULL);
1992 1992
1993 text = gtk_webview_get_body_text(GTK_WEBVIEW(gtkconv->entry)); 1993 text = gtk_webview_get_body_text(GTK_WEBVIEW(gtkconv->entry));
1994 1994
1995 if (*text && strcmp(text, "\n")) 1995 if (*text && strcmp(text, "\n"))
1996 purple_timeout_add(0, (GSourceFunc)update_typing_deleting_cb, gtkconv); 1996 purple_timeout_add(0, (GSourceFunc)update_typing_deleting_cb, gtkconv);
9841 notebook_remove_tab_from_menu_cb(GtkNotebook *notebook, GtkWidget *child, 9841 notebook_remove_tab_from_menu_cb(GtkNotebook *notebook, GtkWidget *child,
9842 guint page_num, PidginWindow *win) 9842 guint page_num, PidginWindow *win)
9843 { 9843 {
9844 GtkWidget *item; 9844 GtkWidget *item;
9845 9845
9846 /* Disconnecting the "child-notify::menu-label" signal. */
9847 g_signal_handlers_disconnect_by_data(child, notebook);
9848
9846 item = g_object_get_data(G_OBJECT(child), "popup-menu-item"); 9849 item = g_object_get_data(G_OBJECT(child), "popup-menu-item");
9847 gtk_container_remove(GTK_CONTAINER(win->notebook_menu), item); 9850 gtk_container_remove(GTK_CONTAINER(win->notebook_menu), item);
9848 } 9851 }
9849 9852
9850 9853

mercurial