aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-config.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-08 14:24:55 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-08 14:24:55 +0800
commitab44fe3e1d962e7876693929c940121e2954379d (patch)
tree337a2db277df0506b22a2954370906de3c37127c /addressbook/gui/component/addressbook-config.c
parent98a615797554ceab22a641f21c4b364b4af21e4f (diff)
downloadgsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar
gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.gz
gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.bz2
gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.lz
gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.xz
gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.zst
gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.zip
add lots of libs back in since they're building now.
2002-11-07 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (evolution_addressbook_LDADD): add lots of libs back in since they're building now. * gui/component/addressbook-config.c: more porting work. * gui/component/addressbook.c: more porting work. * gui/component/e-address-popup.[ch]: more porting work. * gui/component/e-address-widget.[ch]: more porting work. * gui/component/e-cardlist-model.[ch]: more porting work. svn path=/trunk/; revision=18658
Diffstat (limited to 'addressbook/gui/component/addressbook-config.c')
-rw-r--r--addressbook/gui/component/addressbook-config.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index 746d1d9b1c..4bfc49e9e1 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -18,7 +18,6 @@
#include <gtk/gtkentry.h>
#include <gtk/gtkmessagedialog.h>
#include <libgnome/gnome-i18n.h>
-#include <libgnomeui/gnome-dialog.h>
#include <libgnomeui/gnome-druid.h>
#include <libgnomeui/gnome-druid-page.h>
@@ -92,12 +91,12 @@ add_focus_handler (GtkWidget *widget, GtkWidget *notebook, int page_num)
focus_closure->notebook = notebook;
focus_closure->page_num = page_num;
- gtk_signal_connect_full (GTK_OBJECT (widget),
- "focus_in_event" /* XXX */,
- (GtkSignalFunc) focus_help, NULL,
- focus_closure,
- (GtkDestroyNotify) g_free,
- FALSE, FALSE);
+ g_signal_connect_data (G_OBJECT (widget),
+ "focus_in_event" /* XXX */,
+ G_CALLBACK (focus_help),
+ focus_closure,
+ (GClosureNotify) g_free,
+ (GConnectFlags)0);
}
typedef struct _AddressbookDialog AddressbookDialog;
@@ -356,7 +355,7 @@ addressbook_source_dialog_destroy (GtkWidget *widget, AddressbookSourceDialog *d
#undef IF_UNREF
#endif
- gtk_object_destroy (GTK_OBJECT (dialog->gui));
+ gtk_widget_destroy (GTK_WIDGET (dialog->gui));
g_free (dialog);
}
@@ -689,8 +688,8 @@ do_ldap_root_dse_query (GtkWidget *dialog, ETableModel *model, AddressbookSource
static void
search_base_selection_model_changed (ESelectionModel *selection_model, GtkWidget *dialog)
{
- gnome_dialog_set_sensitive (GNOME_DIALOG (dialog),
- 0 /* OK */, e_selection_model_selected_count (selection_model) == 1);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
+ GTK_RESPONSE_OK, e_selection_model_selected_count (selection_model) == 1);
}
static void
@@ -716,11 +715,11 @@ query_for_supported_bases (GtkWidget *button, AddressbookSourceDialog *sdialog)
search_base_selection_model_changed (selection_model, dialog);
if (do_ldap_root_dse_query (dialog, model, source, &values)) {
- gnome_dialog_close_hides (GNOME_DIALOG(dialog), TRUE);
+ id = gtk_dialog_run (GTK_DIALOG (dialog));
- id = gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
+ gtk_widget_hide (dialog);
- if (id == 0) {
+ if (id == GTK_RESPONSE_OK) {
int i;
/* OK was clicked */
@@ -1725,13 +1724,13 @@ addressbook_config_create_new_source (const char *new_source, GtkWidget *parent)
gtk_entry_set_text (GTK_ENTRY (dialog->name), new_source);
- gnome_dialog_close_hides (GNOME_DIALOG(dialog->dialog), TRUE);
+ dialog->id = gtk_dialog_run (GTK_DIALOG (dialog->dialog));
+
+ gtk_widget_hide (dialog->dialog);
- dialog->id = gnome_dialog_run_and_close (GNOME_DIALOG (dialog->dialog));
-
g_object_unref (dialog->gui);
- if (dialog->id == 0) {
+ if (dialog->id == GTK_RESPONSE_OK) {
/* Ok was clicked */
addressbook_storage_add_source (addressbook_source_copy(dialog->source));
addressbook_storage_write_sources();