# HG changeset patch # User Gabriel Schulhof # Date 1186599331 0 # Node ID e91f9b65407ccaebb85cf89f0fb91e623b990eb8 # Parent 8a38c99cc2511f73a10c834fa4f24d8d713bd609 Checking program flow diff -r 8a38c99cc251 -r e91f9b65407c pidgin/gtkblist.c --- a/pidgin/gtkblist.c Wed Aug 08 18:32:31 2007 +0000 +++ b/pidgin/gtkblist.c Wed Aug 08 18:55:31 2007 +0000 @@ -2838,9 +2838,9 @@ } static void -pidgin_blist_show_with_parent(gpointer data1, gpointer data2, gpointer data3) -{ - g_print("Break here\n"); +pidgin_blist_show_with_parent(gpointer data1, void (*callback)(GtkWindow *parent), gpointer data3) +{ + callback(GTK_WINDOW(gtkblist->window)); } /*************************************************** diff -r 8a38c99cc251 -r e91f9b65407c pidgin/gtkdialogs.c --- a/pidgin/gtkdialogs.c Wed Aug 08 18:32:31 2007 +0000 +++ b/pidgin/gtkdialogs.c Wed Aug 08 18:55:31 2007 +0000 @@ -714,7 +714,7 @@ } void -pidgin_dialogs_im(void) +pidgin_dialogs_im(GtkWindow *parent) { PurpleRequestFields *fields; PurpleRequestFieldGroup *group; @@ -738,6 +738,7 @@ purple_request_field_set_required(field, TRUE); purple_request_field_group_add_field(group, field); + g_print("pidgin_dialogs_im: Calling purple_request_fields\n"); purple_request_fields(purple_get_blist(), _("New Instant Message"), NULL, _("Please enter the screen name or alias of the person " @@ -747,6 +748,7 @@ _("Cancel"), NULL, NULL, NULL, NULL, NULL); + g_print("pidgin_dialogs_im: Called purple_request_fields\n"); } void diff -r 8a38c99cc251 -r e91f9b65407c pidgin/gtkdialogs.h --- a/pidgin/gtkdialogs.h Wed Aug 08 18:32:31 2007 +0000 +++ b/pidgin/gtkdialogs.h Wed Aug 08 18:55:31 2007 +0000 @@ -32,7 +32,7 @@ /* Functions in gtkdialogs.c (these should actually stay in this file) */ void pidgin_dialogs_destroy_all(void); void pidgin_dialogs_about(void); -void pidgin_dialogs_im(void); +void pidgin_dialogs_im(GtkWindow *parent); void pidgin_dialogs_im_with_user(PurpleAccount *, const char *); void pidgin_dialogs_info(void); void pidgin_dialogs_log(void);