[evolution] Remove e_source_selector_set_select_new().



commit 13d765e074638ec173a17138474634f274d04a3d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Oct 25 12:18:27 2013 -0400

    Remove e_source_selector_set_select_new().
    
    Sets a flag that's no longer used internally by ESourceSelector.

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-source-selector.c                         |   18 ------------------
 e-util/e-source-selector.h                         |    3 ---
 modules/calendar/e-cal-shell-sidebar.c             |    1 -
 modules/calendar/e-memo-shell-sidebar.c            |    1 -
 modules/calendar/e-task-shell-sidebar.c            |    1 -
 6 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 1fc18c8..2d51327 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -3216,7 +3216,6 @@ e_source_selector_unselect_source
 e_source_selector_select_exclusive
 e_source_selector_source_is_selected
 e_source_selector_get_selection
-e_source_selector_set_select_new
 e_source_selector_edit_primary_selection
 e_source_selector_ref_primary_selection
 e_source_selector_set_primary_selection
diff --git a/e-util/e-source-selector.c b/e-util/e-source-selector.c
index 2044d5f..60414de 100644
--- a/e-util/e-source-selector.c
+++ b/e-util/e-source-selector.c
@@ -54,7 +54,6 @@ struct _ESourceSelectorPrivate {
        GMainContext *main_context;
 
        gboolean toggled_last;
-       gboolean select_new;
        gboolean show_colors;
        gboolean show_icons;
        gboolean show_toggles;
@@ -1393,7 +1392,6 @@ e_source_selector_init (ESourceSelector *selector)
        gtk_tree_view_set_enable_search (tree_view, TRUE);
 
        selector->priv->toggled_last = FALSE;
-       selector->priv->select_new = FALSE;
        selector->priv->show_colors = TRUE;
        selector->priv->show_toggles = TRUE;
 
@@ -1739,22 +1737,6 @@ e_source_selector_get_selection (ESourceSelector *selector)
 }
 
 /**
- * e_source_selector_set_select_new:
- * @selector: An #ESourceSelector widget
- * @state: A gboolean
- *
- * Set whether or not to select new sources added to @selector.
- **/
-void
-e_source_selector_set_select_new (ESourceSelector *selector,
-                                  gboolean state)
-{
-       g_return_if_fail (E_IS_SOURCE_SELECTOR (selector));
-
-       selector->priv->select_new = state;
-}
-
-/**
  * e_source_selector_select_source:
  * @selector: An #ESourceSelector widget
  * @source: An #ESource.
diff --git a/e-util/e-source-selector.h b/e-util/e-source-selector.h
index 29d9815..6be1a27 100644
--- a/e-util/e-source-selector.h
+++ b/e-util/e-source-selector.h
@@ -123,9 +123,6 @@ gboolean    e_source_selector_source_is_selected
                                                (ESourceSelector *selector,
                                                 ESource *source);
 GList *                e_source_selector_get_selection (ESourceSelector *selector);
-void           e_source_selector_set_select_new
-                                               (ESourceSelector *selector,
-                                                gboolean state);
 void           e_source_selector_edit_primary_selection
                                                (ESourceSelector *selector);
 ESource *      e_source_selector_ref_primary_selection
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c
index ff8bc95..2ba2711 100644
--- a/modules/calendar/e-cal-shell-sidebar.c
+++ b/modules/calendar/e-cal-shell-sidebar.c
@@ -585,7 +585,6 @@ cal_shell_sidebar_constructed (GObject *object)
 
        client_cache = e_shell_get_client_cache (shell);
        widget = e_calendar_selector_new (client_cache, shell_view);
-       e_source_selector_set_select_new (E_SOURCE_SELECTOR (widget), TRUE);
        gtk_container_add (GTK_CONTAINER (container), widget);
        a11y = gtk_widget_get_accessible (widget);
        atk_object_set_name (a11y, _("Calendar Selector"));
diff --git a/modules/calendar/e-memo-shell-sidebar.c b/modules/calendar/e-memo-shell-sidebar.c
index eeab5f5..b7ec597 100644
--- a/modules/calendar/e-memo-shell-sidebar.c
+++ b/modules/calendar/e-memo-shell-sidebar.c
@@ -541,7 +541,6 @@ memo_shell_sidebar_constructed (GObject *object)
 
        client_cache = e_shell_get_client_cache (shell);
        widget = e_memo_list_selector_new (client_cache, shell_view);
-       e_source_selector_set_select_new (E_SOURCE_SELECTOR (widget), TRUE);
        gtk_container_add (container, widget);
        a11y = gtk_widget_get_accessible (widget);
        atk_object_set_name (a11y, _("Memo List Selector"));
diff --git a/modules/calendar/e-task-shell-sidebar.c b/modules/calendar/e-task-shell-sidebar.c
index f1837f8..fb69c37 100644
--- a/modules/calendar/e-task-shell-sidebar.c
+++ b/modules/calendar/e-task-shell-sidebar.c
@@ -541,7 +541,6 @@ task_shell_sidebar_constructed (GObject *object)
 
        client_cache = e_shell_get_client_cache (shell);
        widget = e_task_list_selector_new (client_cache, shell_view);
-       e_source_selector_set_select_new (E_SOURCE_SELECTOR (widget), TRUE);
        gtk_container_add (container, widget);
        a11y = gtk_widget_get_accessible (widget);
        atk_object_set_name (a11y, _("Task List Selector"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]