aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-02-28 07:06:58 +0800
committerChris Toshok <toshok@src.gnome.org>2003-02-28 07:06:58 +0800
commit9abf82080cff93489d63cf6b0b929782b190c2fc (patch)
tree6df615b48897f1369bdc0a3be4594de1cdd01530 /addressbook/gui/component
parente814fa50393e093cb4bb8ad222a1ee9f98414ead (diff)
downloadgsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.tar
gsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.tar.gz
gsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.tar.bz2
gsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.tar.lz
gsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.tar.xz
gsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.tar.zst
gsoc2013-evolution-9abf82080cff93489d63cf6b0b929782b190c2fc.zip
use g_signal_connect here, not swapped... although since we pass the
2003-02-27 Chris Toshok <toshok@ximian.com> * 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
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c29
-rw-r--r--addressbook/gui/component/select-names/e-simple-card-bonobo.h2
2 files changed, 24 insertions, 7 deletions
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
}