diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-10-03 11:28:11 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-10-03 11:28:11 +0800 |
commit | 6ca5ab655eb56cab1cbffee98c3edb4da55e11be (patch) | |
tree | 636d049ad3fb75bb5f30ed35f67c0a436c2a9b7c | |
parent | 86279dfe50fb3085a8abfc3e8f1e5c022a48e561 (diff) | |
download | gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar.gz gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar.bz2 gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar.lz gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar.xz gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar.zst gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.zip |
add a storage-set-view-listener, and add a little printf saying what
2000-10-02 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c, subscribe-dialog.h: add a
storage-set-view-listener, and add a little printf saying what
storage was selected.
svn path=/trunk/; revision=5688
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/subscribe-dialog.c | 21 | ||||
-rw-r--r-- | mail/subscribe-dialog.h | 5 |
3 files changed, 30 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 479de37e71..722aa5abba 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,11 @@ 2000-10-02 Chris Toshok <toshok@helixcode.com> + * subscribe-dialog.c, subscribe-dialog.h: add a + storage-set-view-listener, and add a little printf saying what + storage was selected. + +2000-10-02 Chris Toshok <toshok@helixcode.com> + * subscribe-dialog.c (subscribe_dialog_gui_init): get Evolution::StorageSetView interface on our storage set view control, and set "show_folders" to FALSE. diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c index 4ef20c4729..496a9f4c1d 100644 --- a/mail/subscribe-dialog.c +++ b/mail/subscribe-dialog.c @@ -377,6 +377,15 @@ etree_is_editable (ETreeModel *etree, ETreePath *path, int col, void *model_data +static void +storage_selected_cb (EvolutionStorageSetViewListener *listener, + const char *uri) +{ + printf ("user selected storage '%s'\n", uri); +} + + + #define EXAMPLE_DESCR "And the beast shall come forth surrounded by a roiling cloud of vengeance.\n" \ " The house of the unbelievers shall be razed and they shall be scorched to the\n" \ " earth. Their tags shall blink until the end of days. \n" \ @@ -438,6 +447,18 @@ subscribe_dialog_gui_init (SubscribeDialog *sc) sc->storage_set_view_widget = bonobo_widget_new_control_from_objref (sc->storage_set_control, container); + + /* we also want a listener so we can tell when storages are selected */ + sc->listener = evolution_storage_set_view_listener_new (); + + gtk_signal_connect (GTK_OBJECT(sc->listener), + "storage_selected", + storage_selected_cb, sc); + + Evolution_StorageSetView_add_listener (sc->storage_set_view, + evolution_storage_set_view_listener_corba_objref (sc->listener), + &ev); + sc->table = gtk_table_new (1, 2, FALSE); sc->hpaned = e_hpaned_new (); diff --git a/mail/subscribe-dialog.h b/mail/subscribe-dialog.h index 282d4ad18f..d2ea4083e8 100644 --- a/mail/subscribe-dialog.h +++ b/mail/subscribe-dialog.h @@ -11,7 +11,7 @@ #include <bonobo/bonobo-ui-compat.h> #include <bonobo/bonobo-property-bag.h> #include "shell/Evolution.h" - +#include "shell/evolution-storage-set-view-listener.h" #define SUBSCRIBE_DIALOG_TYPE (subscribe_dialog_get_type ()) #define SUBSCRIBE_DIALOG(o) (GTK_CHECK_CAST ((o), SUBSCRIBE_DIALOG_TYPE, SubscribeDialog)) @@ -25,7 +25,8 @@ struct _SubscribeDialog { Evolution_Shell shell; Bonobo_Control storage_set_control; Evolution_StorageSetView storage_set_view; - + EvolutionStorageSetViewListener *listener; + BonoboUIHandler *uih; GtkWidget *app; |