[gaim-migrate @ 17987]

Wed, 13 Dec 2006 18:33:15 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Wed, 13 Dec 2006 18:33:15 +0000
changeset 15259
5d4dc3a3019f
parent 15258
ca95e4c752e8
child 15260
a9e3babd5686

[gaim-migrate @ 17987]
Run the callback just once.

gtk/gtkblist.c file | annotate | diff | comparison | revisions
--- a/gtk/gtkblist.c	Wed Dec 13 11:10:32 2006 +0000
+++ b/gtk/gtkblist.c	Wed Dec 13 18:33:15 2006 +0000
@@ -3686,11 +3686,19 @@
 }
 
 static gboolean
+headline_click_callback(gpointer data)
+{
+	((GSourceFunc)gtkblist->headline_callback)(gtkblist->headline_data);
+	return FALSE;
+}
+
+static gboolean
 headline_box_press_cb(GtkWidget *widget, GdkEventButton *event, GaimGtkBuddyList *gtkblist)
 {
 	gtk_widget_hide(gtkblist->headline_hbox);
 	if (gtkblist->headline_callback)
-		g_idle_add(G_CALLBACK(gtkblist->headline_callback), gtkblist->headline_data);
+		g_idle_add((GSourceFunc)headline_click_callback, gtkblist->headline_data);
+	return TRUE;
 }
 
 /***********************************/

mercurial