Mercurial > pidgin.yaz
changeset 19811:e91f9b65407c
Checking program flow
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Wed, 08 Aug 2007 18:55:31 +0000 |
parents | 8a38c99cc251 |
children | c11c4afe9024 |
files | pidgin/gtkblist.c pidgin/gtkdialogs.c pidgin/gtkdialogs.h |
diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)); } /***************************************************
--- 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
--- 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);