changeset 15198:933ae49622e7

[gaim-migrate @ 17987] Run the callback just once. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 13 Dec 2006 18:33:15 +0000
parents 92ebda7a7afc
children c9bb2131bdf3
files gtk/gtkblist.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
 
 /***********************************/