From 9abf82080cff93489d63cf6b0b929782b190c2fc Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 27 Feb 2003 23:06:58 +0000 Subject: use g_signal_connect here, not swapped... although since we pass the 2003-02-27 Chris Toshok * gui/component/addressbook.c (book_open_cb): use g_signal_connect here, not swapped... although since we pass the widget as the closure it really doesn't matter. (load_uri_auth_cb): use a GtkDialog here. (search_result): same. * gui/component/select-names/e-simple-card-bonobo.h: add prototype for e_simple_card_bonobo_construct to fix warning. * gui/widgets/e-addressbook-view.c (create_alphabet): remove call to gtk_widget_set_usize. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): gtk_window_set_policy => gtk_window_set_resizable. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): same. svn path=/trunk/; revision=20095 --- addressbook/gui/component/addressbook.c | 29 ++++++++++++++++------ .../component/select-names/e-simple-card-bonobo.h | 2 ++ 2 files changed, 24 insertions(+), 7 deletions(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 7e43be131c..b5f7bc5df8 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -549,10 +549,10 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure) label_string, NULL); - g_signal_connect_swapped (warning_dialog, - "response", - G_CALLBACK (gtk_widget_destroy), - warning_dialog); + g_signal_connect (warning_dialog, + "response", + G_CALLBACK (gtk_widget_destroy), + warning_dialog); gtk_window_set_title (GTK_WINDOW (warning_dialog), _("Unable to open addressbook")); @@ -614,7 +614,14 @@ load_uri_auth_cb (EBook *book, EBookStatus status, gpointer closure) if (status != E_BOOK_STATUS_SUCCESS) { if (status == E_BOOK_STATUS_CANCELLED) { /* the user clicked cancel in the password dialog */ - gnome_warning_dialog (_("Accessing LDAP Server anonymously")); + GtkWidget *dialog; + dialog = gtk_message_dialog_new (NULL, + 0, + GTK_MESSAGE_WARNING, + GTK_BUTTONS_OK, + _("Accessing LDAP Server anonymously")); + g_signal_connect (dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); + gtk_widget_show (dialog); data->cb (book, E_BOOK_STATUS_SUCCESS, data->closure); g_free (data->clean_uri); g_free (data); @@ -1000,8 +1007,16 @@ search_result (EAddressbookView *eav, EBookViewStatus status, AddressbookView *v break; } - if (str) - gnome_warning_dialog (str); + if (str) { + GtkWidget *dialog; + dialog = gtk_message_dialog_new (NULL, + 0, + GTK_MESSAGE_WARNING, + GTK_BUTTONS_OK, + str); + g_signal_connect (dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); + gtk_widget_show (dialog); + } } static void diff --git a/addressbook/gui/component/select-names/e-simple-card-bonobo.h b/addressbook/gui/component/select-names/e-simple-card-bonobo.h index 93429f02f8..7bc2d65830 100644 --- a/addressbook/gui/component/select-names/e-simple-card-bonobo.h +++ b/addressbook/gui/component/select-names/e-simple-card-bonobo.h @@ -61,6 +61,8 @@ struct _ESimpleCardBonoboClass { GType e_simple_card_bonobo_get_type (void); ESimpleCardBonobo *e_simple_card_bonobo_new (ECardSimple *card_simple); +void e_simple_card_bonobo_construct (ESimpleCardBonobo *simple_card, + ECardSimple *card_simple); #ifdef __cplusplus } -- cgit v1.2.3