[evolution] Remove e_preferences_window_filter_page().



commit 4d3d4aaab95961c90ebfeb3d55415d399ebbb598
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Mar 31 12:00:09 2013 -0400

    Remove e_preferences_window_filter_page().
    
    No longer used.

 doc/reference/libeutil/libeutil-sections.txt |    1 -
 e-util/e-preferences-window.c                |   32 --------------------------
 e-util/e-preferences-window.h                |    3 --
 3 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/doc/reference/libeutil/libeutil-sections.txt b/doc/reference/libeutil/libeutil-sections.txt
index d9d75fb..39812f5 100644
--- a/doc/reference/libeutil/libeutil-sections.txt
+++ b/doc/reference/libeutil/libeutil-sections.txt
@@ -2650,7 +2650,6 @@ e_preferences_window_get_shell
 e_preferences_window_setup
 e_preferences_window_add_page
 e_preferences_window_show_page
-e_preferences_window_filter_page
 <SUBSECTION Standard>
 E_PREFERENCES_WINDOW
 E_IS_PREFERENCES_WINDOW
diff --git a/e-util/e-preferences-window.c b/e-util/e-preferences-window.c
index fda3037..4d2c367 100644
--- a/e-util/e-preferences-window.c
+++ b/e-util/e-preferences-window.c
@@ -512,38 +512,6 @@ e_preferences_window_show_page (EPreferencesWindow *window,
        gtk_tree_path_free (path);
 }
 
-void
-e_preferences_window_filter_page (EPreferencesWindow *window,
-                                  const gchar *page_name)
-{
-       GtkTreeRowReference *reference;
-       GtkIconView *icon_view;
-       GtkTreePath *path;
-
-       g_return_if_fail (E_IS_PREFERENCES_WINDOW (window));
-       g_return_if_fail (page_name != NULL);
-       g_return_if_fail (window->priv->setup);
-
-       icon_view = GTK_ICON_VIEW (window->priv->icon_view);
-       reference = g_hash_table_lookup (window->priv->index, page_name);
-       g_return_if_fail (reference != NULL);
-
-       path = gtk_tree_row_reference_get_path (reference);
-       gtk_icon_view_select_path (icon_view, path);
-       gtk_icon_view_scroll_to_path (icon_view, path, FALSE, 0.0, 0.0);
-       gtk_tree_path_free (path);
-
-       window->priv->filter_view = page_name;
-       gtk_tree_model_filter_refilter (window->priv->filter);
-
-       /* XXX: We need a better solution to hide the icon view when
-        * there is just one entry */
-       if (strncmp (page_name, "cal", 3) == 0) {
-               gtk_widget_hide (window->priv->scroll);
-       } else
-               gtk_widget_show (window->priv->scroll);
-}
-
 /*
  * Create all the deferred configuration pages.
  */
diff --git a/e-util/e-preferences-window.h b/e-util/e-preferences-window.h
index c1f7b4d..f7da962 100644
--- a/e-util/e-preferences-window.h
+++ b/e-util/e-preferences-window.h
@@ -79,9 +79,6 @@ void          e_preferences_window_add_page   (EPreferencesWindow *window,
                                                 gint sort_order);
 void           e_preferences_window_show_page  (EPreferencesWindow *window,
                                                 const gchar *page_name);
-void           e_preferences_window_filter_page
-                                               (EPreferencesWindow *window,
-                                                const gchar *page_name);
 
 G_END_DECLS
 


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