From 86126bcd4d5acd39b29be39ea21092be611969ff Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 28 Aug 2008 18:40:05 +0000 Subject: [PATCH] New function provides access to the internal source list. 2008-08-28 Matthew Barnes * e-source-selector.c (e_source_selector_get_source_list): New function provides access to the internal source list. svn path=/trunk/; revision=9444 --- docs/reference/camel/tmpl/camel.sgml | 7 +++++++ .../libedataserverui/libedataserverui-sections.txt | 1 + .../libedataserverui/tmpl/e-source-selector.sgml | 9 +++++++++ libedataserverui/ChangeLog | 5 +++++ libedataserverui/e-source-selector.c | 15 +++++++++++++++ libedataserverui/e-source-selector.h | 1 + 6 files changed, 38 insertions(+) diff --git a/docs/reference/camel/tmpl/camel.sgml b/docs/reference/camel/tmpl/camel.sgml index 6c63f0b..12c4e85 100644 --- a/docs/reference/camel/tmpl/camel.sgml +++ b/docs/reference/camel/tmpl/camel.sgml @@ -27,3 +27,10 @@ camel @Returns: + + + + + + + diff --git a/docs/reference/libedataserverui/libedataserverui-sections.txt b/docs/reference/libedataserverui/libedataserverui-sections.txt index 9cf0cd0..48a146d 100644 --- a/docs/reference/libedataserverui/libedataserverui-sections.txt +++ b/docs/reference/libedataserverui/libedataserverui-sections.txt @@ -245,6 +245,7 @@ e_name_selector_model_get_type ESourceSelector ESourceSelector e_source_selector_new +e_source_selector_get_source_list e_source_selector_select_source e_source_selector_unselect_source e_source_selector_source_is_selected diff --git a/docs/reference/libedataserverui/tmpl/e-source-selector.sgml b/docs/reference/libedataserverui/tmpl/e-source-selector.sgml index 0b5b9b2..c1abf1b 100644 --- a/docs/reference/libedataserverui/tmpl/e-source-selector.sgml +++ b/docs/reference/libedataserverui/tmpl/e-source-selector.sgml @@ -56,6 +56,15 @@ ESourceSelector @Returns: + + + + + +@selector: +@Returns: + + diff --git a/libedataserverui/ChangeLog b/libedataserverui/ChangeLog index 2c760df..43004cb 100644 --- a/libedataserverui/ChangeLog +++ b/libedataserverui/ChangeLog @@ -1,3 +1,8 @@ +2008-08-28 Matthew Barnes + + * e-source-selector.c (e_source_selector_get_source_list): + New function provides access to the internal source list. + 2008-08-17 Matthew Barnes ** Fixes bug #547952 diff --git a/libedataserverui/e-source-selector.c b/libedataserverui/e-source-selector.c index 865fe6e..9653733 100644 --- a/libedataserverui/e-source-selector.c +++ b/libedataserverui/e-source-selector.c @@ -917,6 +917,21 @@ e_source_selector_new (ESourceList *list) return GTK_WIDGET (selector); } +/** + * e_source_selector_get_source_list: + * @selector: an #ESourceSelector + * + * Returns the #ESourceList that @selector is rendering. + * + * Returns: an #ESourceList + **/ +ESourceList * +e_source_selector_get_source_list (ESourceSelector *selector) +{ + g_return_val_if_fail (E_IS_SOURCE_LIST (selector), NULL); + + return selector->priv->list; +} /** * e_source_selector_get_selection: diff --git a/libedataserverui/e-source-selector.h b/libedataserverui/e-source-selector.h index a5cd662..b312d42 100644 --- a/libedataserverui/e-source-selector.h +++ b/libedataserverui/e-source-selector.h @@ -58,6 +58,7 @@ struct _ESourceSelectorClass { GType e_source_selector_get_type (void); GtkWidget *e_source_selector_new (ESourceList *list); +ESourceList * e_source_selector_get_source_list (ESourceSelector *selector); void e_source_selector_select_source (ESourceSelector *selector, ESource *source); -- 2.7.4