diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-04-01 00:00:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-04-01 00:10:54 +0800 |
commit | 4d3d4aaab95961c90ebfeb3d55415d399ebbb598 (patch) | |
tree | b1a4459642cf0d1857e47e800321403ee4513891 | |
parent | 018018fabe7e660f7928b8a7b817bb63202dc734 (diff) | |
download | gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.gz gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.bz2 gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.lz gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.xz gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.tar.zst gsoc2013-evolution-4d3d4aaab95961c90ebfeb3d55415d399ebbb598.zip |
Remove e_preferences_window_filter_page().
No longer used.
-rw-r--r-- | doc/reference/libeutil/libeutil-sections.txt | 1 | ||||
-rw-r--r-- | e-util/e-preferences-window.c | 32 | ||||
-rw-r--r-- | 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 d9d75fb9ab..39812f56d0 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 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 |