aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-04-01 00:00:09 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-04-01 00:10:54 +0800
commit4d3d4aaab95961c90ebfeb3d55415d399ebbb598 (patch)
treeb1a4459642cf0d1857e47e800321403ee4513891 /e-util
parent018018fabe7e660f7928b8a7b817bb63202dc734 (diff)
downloadgsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.gz
gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.zst
gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.zip
Remove e_preferences_window_filter_page().
No longer used.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-preferences-window.c32
-rw-r--r--e-util/e-preferences-window.h3
2 files changed, 0 insertions, 35 deletions
diff --git a/e-util/e-preferences-window.c b/e-util/e-preferences-window.c
index fda3037cff..4d2c36731f 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 c1f7b4d696..f7da962877 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