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 /mail/subscribe-dialog.c | |
parent | 86279dfe50fb3085a8abfc3e8f1e5c022a48e561 (diff) | |
download | gsoc2013-evolution-6ca5ab655eb56cab1cbffee98c3edb4da55e11be.tar.gz 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
Diffstat (limited to 'mail/subscribe-dialog.c')
-rw-r--r-- | mail/subscribe-dialog.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 (); |