diff options
author | Not Zed <NotZed@Ximian.com> | 2002-07-15 10:06:46 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-07-15 10:06:46 +0800 |
commit | 393fa3c3e84b73dc591fa4481bcf2731dc640157 (patch) | |
tree | 3dab076406b9611fd5fa3eb7b77289c99f6136a5 /mail/folder-browser-factory.c | |
parent | 68ec840bca073bc8e8ea2f58ad36078df9c619c1 (diff) | |
download | gsoc2013-evolution-393fa3c3e84b73dc591fa4481bcf2731dc640157.tar.gz gsoc2013-evolution-393fa3c3e84b73dc591fa4481bcf2731dc640157.tar.zst gsoc2013-evolution-393fa3c3e84b73dc591fa4481bcf2731dc640157.zip |
** fixes for #10781
2002-07-10 Not Zed <NotZed@Ximian.com>
** fixes for #10781
* mail-callbacks.c (filter_edit): Add back a cancel button. We
dont need to do anything special to 'undo' here, as the rules are
loaded every time they're used.
* mail-vfolder.c (vfolder_editor_clicked): If ok wans't clicked,
revert the ruleset.
(vfolder_editor_destroy): Fake a button of -1 if we get destroyed
with no click.
(context_rule_removed): Unref the folder after we delete it. If
we're the last ref to the folder, unrefing it means it no longer
exist,s which means no delte processing occurs ...
svn path=/trunk/; revision=17449
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r-- | mail/folder-browser-factory.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 395dc26ae8..fa09a3e059 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -213,3 +213,29 @@ folder_browser_factory_get_control_list (void) control_list = e_list_new (NULL, NULL, NULL); return control_list; } + +FolderBrowser * +folder_browser_factory_get_browser(const char *uri) +{ + EList *controls; + EIterator *it; + BonoboControl *control; + FolderBrowser *fb = NULL; + + if (control_list == NULL) + return NULL; + + controls = folder_browser_factory_get_control_list (); + for (it = e_list_get_iterator (controls); e_iterator_is_valid (it); e_iterator_next (it)) { + control = BONOBO_CONTROL (e_iterator_get (it)); + fb = FOLDER_BROWSER(bonobo_control_get_widget(control)); + if (fb->uri && strcmp(fb->uri, uri) == 0) + break; + fb = NULL; + } + gtk_object_unref (GTK_OBJECT(it)); + + return fb; +} + + |