aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-05-12 12:39:10 +0800
committerChris Toshok <toshok@src.gnome.org>2001-05-12 12:39:10 +0800
commit9f45bb787b7e67b2d08234de9732836d121240a5 (patch)
treedb9605628897f771ddfbbc90a2b108a8a0ae23ba /addressbook/gui
parentd35a3f652b8059e20e6dbe53f5f136bdf7f2f354 (diff)
downloadgsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.tar
gsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.tar.gz
gsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.tar.bz2
gsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.tar.lz
gsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.tar.xz
gsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.tar.zst
gsoc2013-evolution-9f45bb787b7e67b2d08234de9732836d121240a5.zip
correct bug causing the Ok button to never be enabled.
2001-05-11 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (addressbook_source_dialog): correct bug causing the Ok button to never be enabled. svn path=/trunk/; revision=9779
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/addressbook-config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index 9af3b2fa61..08fff54cb6 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -650,8 +650,8 @@ addressbook_source_dialog (AddressbookSource *source, GtkWidget *parent)
GtkWidget *vbox, *dialog_vbox;
#ifdef INCLUDE_FILE_SOURCE
GtkWidget *menu;
- AddressbookSourcePageItem *first_item = NULL;
#endif
+ AddressbookSourcePageItem *first_item = NULL;
GtkWidget *area;
int i;
int row = 0;
@@ -712,10 +712,10 @@ addressbook_source_dialog (AddressbookSource *source, GtkWidget *parent)
#ifdef INCLUDE_FILE_SOURCE
item->item = gtk_menu_item_new_with_label (addressbook_config_source_label (i));
+#endif
if (!first_item)
first_item = item;
-#endif
gtk_notebook_append_page (GTK_NOTEBOOK (dialog->notebook),
item->vbox, NULL);
@@ -732,7 +732,9 @@ addressbook_source_dialog (AddressbookSource *source, GtkWidget *parent)
#ifdef INCLUDE_FILE_SOURCE
gtk_option_menu_set_menu (GTK_OPTION_MENU (dialog->source_option), menu);
+#endif
source_type_menuitem_activate (first_item->item, first_item);
+#ifdef INCLUDE_FILE_SOURCE
gtk_option_menu_set_history (GTK_OPTION_MENU(dialog->source_option), 0);
#endif