# HG changeset patch # User Sadrul Habib Chowdhury # Date 1166034795 0 # Node ID 933ae49622e73192242b282f01b3ae5e721e323c # Parent 92ebda7a7afc86a2e7ce2cb198067e595888c9b4 [gaim-migrate @ 17987] Run the callback just once. committer: Tailor Script diff -r 92ebda7a7afc -r 933ae49622e7 gtk/gtkblist.c --- 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; } /***********************************/