diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-05-21 14:30:38 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-05-21 14:30:38 +0800 |
commit | ce193f65868f23a354925b92626325a72c047e06 (patch) | |
tree | 6328e80f9cecc1660cbea1e479b3409685985be9 /shell/e-shell-shared-folder-picker-dialog.c | |
parent | a33709547e482bfb7c0c0b3bf2fb491a28b61dab (diff) | |
download | gsoc2013-evolution-ce193f65868f23a354925b92626325a72c047e06.tar.gz gsoc2013-evolution-ce193f65868f23a354925b92626325a72c047e06.tar.zst gsoc2013-evolution-ce193f65868f23a354925b92626325a72c047e06.zip |
Do async_open_folder in an idle callback.
2002-05-21 Christopher James Lahey <clahey@ximian.com>
* e-corba-storage.c (async_open_folder_idle): Do async_open_folder
in an idle callback.
* e-shell-shared-folder-picker-dialog.c (user_clicked),
glade/e-shell-shared-folder-picker-dialog.glade: Added a select
names button here.
svn path=/trunk/; revision=16964
Diffstat (limited to 'shell/e-shell-shared-folder-picker-dialog.c')
-rw-r--r-- | shell/e-shell-shared-folder-picker-dialog.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/shell/e-shell-shared-folder-picker-dialog.c b/shell/e-shell-shared-folder-picker-dialog.c index 9dfca186bd..c2a5c02160 100644 --- a/shell/e-shell-shared-folder-picker-dialog.c +++ b/shell/e-shell-shared-folder-picker-dialog.c @@ -80,6 +80,20 @@ setup_folder_name_combo (GladeXML *glade_xml) gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (combo)->entry), "Calendar"); } +static void +user_clicked (GtkWidget *button, GNOME_Evolution_Addressbook_SelectNames corba_iface) +{ + CORBA_Environment ev; + + CORBA_exception_init (&ev); + GNOME_Evolution_Addressbook_SelectNames_activateDialog (corba_iface, "User", &ev); + + if (BONOBO_EX (&ev)) { + g_warning ("Cannot activate SelectNames dialog -- %s", BONOBO_EX_ID (&ev)); + } + CORBA_exception_free (&ev); +} + static GtkWidget * setup_name_selector (GladeXML *glade_xml) { @@ -88,6 +102,7 @@ setup_name_selector (GladeXML *glade_xml) CORBA_Environment ev; GtkWidget *placeholder; GtkWidget *control_widget; + GtkWidget *button; placeholder = glade_xml_get_widget (glade_xml, "user-picker-placeholder"); g_assert (GTK_IS_CONTAINER (placeholder)); @@ -118,6 +133,10 @@ setup_name_selector (GladeXML *glade_xml) gtk_container_add (GTK_CONTAINER (placeholder), control_widget); gtk_widget_show (control_widget); + button = glade_xml_get_widget (glade_xml, "button-user"); + gtk_signal_connect (GTK_OBJECT (button), "clicked", + user_clicked, corba_iface); + CORBA_exception_free (&ev); return control_widget; @@ -214,13 +233,16 @@ show_dialog (EShell *shell, EShellView *parent, char **user_email_address_return, char **storage_name_return, - char **folder_name_return) + char **folder_name_return/*, + char **mailbox_name_return*/) { GladeXML *glade_xml; GtkWidget *dialog; GtkWidget *name_selector_widget; GtkWidget *folder_name_entry; int button_num; + /* GNOME_Evolution_Addressbook_SimpleCardList *simple_card_list;*/ + glade_xml = glade_xml_new (EVOLUTION_GLADEDIR "/e-shell-shared-folder-picker-dialog.glade", NULL); |