[gtk+] gtk: Remove GtkRecentChooser
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk: Remove GtkRecentChooser
- Date: Sat, 3 Feb 2018 10:54:02 +0000 (UTC)
commit 55874470ff6d619dd05d8c344d4b3c3205982eae
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 2 18:01:17 2018 +0100
gtk: Remove GtkRecentChooser
It's not used any more, recent files are only used by the filtchooser
and that one uses GtkRecentManager directly.
docs/reference/gtk/gtk4-docs.xml | 5 -
docs/reference/gtk/gtk4-sections.txt | 137 --
docs/reference/gtk/images/recentchooserdialog.png | Bin 33249 -> 0 bytes
docs/reference/gtk/meson.build | 1 -
docs/reference/gtk/visual_index.xml | 3 -
docs/tools/widgets.c | 20 -
gtk/gtk-autocleanups.h | 5 -
gtk/gtk.h | 5 -
gtk/gtkrecentchooser.c | 999 ------------
gtk/gtkrecentchooser.h | 263 ----
gtk/gtkrecentchooserdefault.c | 1707 ---------------------
gtk/gtkrecentchooserdefault.h | 40 -
gtk/gtkrecentchooserdialog.c | 360 -----
gtk/gtkrecentchooserdialog.h | 81 -
gtk/gtkrecentchoosermenu.c | 1248 ---------------
gtk/gtkrecentchoosermenu.h | 77 -
gtk/gtkrecentchooserprivate.h | 40 -
gtk/gtkrecentchooserutils.c | 530 -------
gtk/gtkrecentchooserutils.h | 60 -
gtk/gtkrecentchooserwidget.c | 237 ---
gtk/gtkrecentchooserwidget.h | 71 -
gtk/gtkrecentfilter.c | 837 ----------
gtk/gtkrecentfilter.h | 150 --
gtk/meson.build | 13 -
gtk/ui/gtkrecentchooserdefault.ui | 88 --
gtk/ui/gtkrecentchooserdefault.ui.h | 1 -
po-properties/POTFILES.in | 3 -
po-properties/POTFILES.skip | 2 -
tests/meson.build | 2 -
tests/popupat.ui | 21 -
tests/testrecentchooser.c | 200 ---
tests/testrecentchoosermenu.c | 183 ---
testsuite/gtk/templates.c | 11 -
33 files changed, 0 insertions(+), 7400 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-docs.xml b/docs/reference/gtk/gtk4-docs.xml
index 4bb2f0e..fa4417a 100644
--- a/docs/reference/gtk/gtk4-docs.xml
+++ b/docs/reference/gtk/gtk4-docs.xml
@@ -276,11 +276,6 @@
<chapter id="RecentDocuments">
<title>Recently Used Documents</title>
<xi:include href="xml/gtkrecentmanager.xml" />
- <xi:include href="xml/gtkrecentchooser.xml" />
- <xi:include href="xml/gtkrecentchooserdialog.xml" />
- <xi:include href="xml/gtkrecentchoosermenu.xml" />
- <xi:include href="xml/gtkrecentchooserwidget.xml" />
- <xi:include href="xml/gtkrecentfilter.xml" />
</chapter>
<chapter id="ApplicationChoosing">
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index b4ef5fa..fd0c322 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -2180,143 +2180,6 @@ GtkRangePrivate
</SECTION>
<SECTION>
-<FILE>gtkrecentchooser</FILE>
-<TITLE>GtkRecentChooser</TITLE>
-GtkRecentChooser
-GtkRecentChooserIface
-GTK_RECENT_CHOOSER_ERROR
-GtkRecentChooserError
-gtk_recent_chooser_set_show_private
-gtk_recent_chooser_get_show_private
-gtk_recent_chooser_set_show_not_found
-gtk_recent_chooser_get_show_not_found
-gtk_recent_chooser_set_show_icons
-gtk_recent_chooser_get_show_icons
-gtk_recent_chooser_set_select_multiple
-gtk_recent_chooser_get_select_multiple
-gtk_recent_chooser_set_local_only
-gtk_recent_chooser_get_local_only
-gtk_recent_chooser_set_limit
-gtk_recent_chooser_get_limit
-gtk_recent_chooser_set_show_tips
-gtk_recent_chooser_get_show_tips
-GtkRecentSortType
-gtk_recent_chooser_set_sort_type
-gtk_recent_chooser_get_sort_type
-GtkRecentSortFunc
-gtk_recent_chooser_set_sort_func
-gtk_recent_chooser_set_current_uri
-gtk_recent_chooser_get_current_uri
-gtk_recent_chooser_get_current_item
-gtk_recent_chooser_select_uri
-gtk_recent_chooser_unselect_uri
-gtk_recent_chooser_select_all
-gtk_recent_chooser_unselect_all
-gtk_recent_chooser_get_items
-gtk_recent_chooser_get_uris
-gtk_recent_chooser_add_filter
-gtk_recent_chooser_remove_filter
-gtk_recent_chooser_list_filters
-gtk_recent_chooser_set_filter
-gtk_recent_chooser_get_filter
-<SUBSECTION Standard>
-GTK_RECENT_CHOOSER
-GTK_IS_RECENT_CHOOSER
-GTK_TYPE_RECENT_CHOOSER
-GTK_RECENT_CHOOSER_GET_IFACE
-<SUBSECTION Private>
-gtk_recent_chooser_get_type
-gtk_recent_chooser_error_quark
-</SECTION>
-
-<SECTION>
-<FILE>gtkrecentchooserdialog</FILE>
-<TITLE>GtkRecentChooserDialog</TITLE>
-GtkRecentChooserDialog
-gtk_recent_chooser_dialog_new
-gtk_recent_chooser_dialog_new_for_manager
-<SUBSECTION Standard>
-GTK_RECENT_CHOOSER_DIALOG
-GTK_IS_RECENT_CHOOSER_DIALOG
-GTK_TYPE_RECENT_CHOOSER_DIALOG
-GTK_RECENT_CHOOSER_DIALOG_CLASS
-GTK_IS_RECENT_CHOOSER_DIALOG_CLASS
-GTK_RECENT_CHOOSER_DIALOG_GET_CLASS
-
-<SUBSECTION Private>
-gtk_recent_chooser_dialog_get_type
-GtkRecentChooserDialogPrivate
-</SECTION>
-
-<SECTION>
-<FILE>gtkrecentchoosermenu</FILE>
-<TITLE>GtkRecentChooserMenu</TITLE>
-GtkRecentChooserMenu
-gtk_recent_chooser_menu_new
-gtk_recent_chooser_menu_new_for_manager
-gtk_recent_chooser_menu_get_show_numbers
-gtk_recent_chooser_menu_set_show_numbers
-<SUBSECTION Standard>
-GTK_RECENT_CHOOSER_MENU
-GTK_IS_RECENT_CHOOSER_MENU
-GTK_TYPE_RECENT_CHOOSER_MENU
-GTK_RECENT_CHOOSER_MENU_CLASS
-GTK_IS_RECENT_CHOOSER_MENU_CLASS
-GTK_RECENT_CHOOSER_MENU_GET_CLASS
-
-<SUBSECTION Private>
-gtk_recent_chooser_menu_get_type
-GtkRecentChooserMenuPrivate
-</SECTION>
-
-<SECTION>
-<FILE>gtkrecentchooserwidget</FILE>
-<TITLE>GtkRecentChooserWidget</TITLE>
-GtkRecentChooserWidget
-gtk_recent_chooser_widget_new
-gtk_recent_chooser_widget_new_for_manager
-<SUBSECTION Standard>
-GTK_RECENT_CHOOSER_WIDGET
-GTK_IS_RECENT_CHOOSER_WIDGET
-GTK_TYPE_RECENT_CHOOSER_WIDGET
-GTK_RECENT_CHOOSER_WIDGET_CLASS
-GTK_IS_RECENT_CHOOSER_WIDGET_CLASS
-GTK_RECENT_CHOOSER_WIDGET_GET_CLASS
-
-<SUBSECTION Private>
-gtk_recent_chooser_widget_get_type
-GtkRecentChooserWidgetPrivate
-</SECTION>
-
-<SECTION>
-<FILE>gtkrecentfilter</FILE>
-<TITLE>GtkRecentFilter</TITLE>
-GtkRecentFilter
-GtkRecentFilterInfo
-GtkRecentFilterFlags
-GtkRecentFilterFunc
-gtk_recent_filter_new
-gtk_recent_filter_get_name
-gtk_recent_filter_set_name
-gtk_recent_filter_add_mime_type
-gtk_recent_filter_add_pattern
-gtk_recent_filter_add_pixbuf_formats
-gtk_recent_filter_add_application
-gtk_recent_filter_add_group
-gtk_recent_filter_add_age
-gtk_recent_filter_add_custom
-gtk_recent_filter_get_needed
-gtk_recent_filter_filter
-<SUBSECTION Standard>
-GTK_RECENT_FILTER
-GTK_IS_RECENT_FILTER
-GTK_TYPE_RECENT_FILTER
-
-<SUBSECTION Private>
-gtk_recent_filter_get_type
-</SECTION>
-
-<SECTION>
<FILE>gtkrecentmanager</FILE>
<TITLE>GtkRecentManager</TITLE>
GtkRecentManager
diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build
index a124564..f94454f 100644
--- a/docs/reference/gtk/meson.build
+++ b/docs/reference/gtk/meson.build
@@ -112,7 +112,6 @@ images = [
'images/printdialog.png',
'images/progressbar.png',
'images/radio-group.png',
- 'images/recentchooserdialog.png',
'images/right-center.png',
'images/right-end.png',
'images/right-start.png',
diff --git a/docs/reference/gtk/visual_index.xml b/docs/reference/gtk/visual_index.xml
index c3f3776..2eadeae 100644
--- a/docs/reference/gtk/visual_index.xml
+++ b/docs/reference/gtk/visual_index.xml
@@ -198,9 +198,6 @@
<link linkend="GtkFileChooserDialog">
<inlinegraphic fileref="filechooser.png" format="PNG"></inlinegraphic>
</link>
- <link linkend="GtkRecentChooserDialog">
- <inlinegraphic fileref="recentchooserdialog.png" format="PNG"></inlinegraphic>
- </link>
<link linkend="GtkFontChooserDialog">
<inlinegraphic fileref="fontchooser.png" format="PNG"></inlinegraphic>
</link>
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 33c8590..6feaf98 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -449,25 +449,6 @@ create_action_bar (void)
}
static WidgetInfo *
-create_recent_chooser_dialog (void)
-{
- WidgetInfo *info;
- GtkWidget *widget;
-
- widget = gtk_recent_chooser_dialog_new ("Recent Chooser Dialog",
- NULL,
- "Cancel", GTK_RESPONSE_CANCEL,
- "Open", GTK_RESPONSE_ACCEPT,
- NULL);
- gtk_window_set_default_size (GTK_WINDOW (widget), 505, 305);
-
- info = new_widget_info ("recentchooserdialog", widget, ASIS);
- info->include_decorations = TRUE;
-
- return info;
-}
-
-static WidgetInfo *
create_text_view (void)
{
GtkWidget *widget;
@@ -1511,7 +1492,6 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_window ());
retval = g_list_prepend (retval, create_filesel ());
retval = g_list_prepend (retval, create_assistant ());
- retval = g_list_prepend (retval, create_recent_chooser_dialog ());
retval = g_list_prepend (retval, create_page_setup_dialog ());
retval = g_list_prepend (retval, create_print_dialog ());
retval = g_list_prepend (retval, create_volume_button ());
diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h
index caccfe5..a4bd936 100644
--- a/gtk/gtk-autocleanups.h
+++ b/gtk/gtk-autocleanups.h
@@ -130,11 +130,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRadioButton, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRadioMenuItem, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRadioToolButton, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRange, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRecentChooser, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRecentChooserDialog, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRecentChooserMenu, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRecentChooserWidget, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRecentFilter, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRecentManager, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRevealer, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkScale, g_object_unref)
diff --git a/gtk/gtk.h b/gtk/gtk.h
index acd5b76..1d23fc1 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -167,11 +167,6 @@
#include <gtk/gtkradiomenuitem.h>
#include <gtk/gtkradiotoolbutton.h>
#include <gtk/gtkrange.h>
-#include <gtk/gtkrecentchooser.h>
-#include <gtk/gtkrecentchooserdialog.h>
-#include <gtk/gtkrecentchoosermenu.h>
-#include <gtk/gtkrecentchooserwidget.h>
-#include <gtk/gtkrecentfilter.h>
#include <gtk/gtkrecentmanager.h>
#include <gtk/gtkrender.h>
#include <gtk/gtkrevealer.h>
diff --git a/gtk/meson.build b/gtk/meson.build
index 4d22655..b80ec6a 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -121,7 +121,6 @@ gtk_private_sources = files([
'gtkprivate.c',
'gtkprogresstracker.c',
'gtkquery.c',
- 'gtkrecentchooserutils.c',
'gtksearchengine.c',
'gtksearchenginemodel.c',
'gtksearchenginesimple.c',
@@ -280,12 +279,6 @@ gtk_public_sources = files([
'gtkradiotoolbutton.c',
'gtkrange.c',
'gtkrbtree.c',
- 'gtkrecentchooser.c',
- 'gtkrecentchooserdefault.c',
- 'gtkrecentchooserdialog.c',
- 'gtkrecentchoosermenu.c',
- 'gtkrecentchooserwidget.c',
- 'gtkrecentfilter.c',
'gtkrecentmanager.c',
'gtkrender.c',
'gtkrenderbackground.c',
@@ -377,7 +370,6 @@ gtk_private_type_headers = files([
gtk_private_headers = gtk_private_type_headers + files([
'gtkrbtree.h',
- 'gtkrecentchooserutils.h',
])
gtk_public_headers = files([
@@ -521,11 +513,6 @@ gtk_public_headers = files([
'gtkradiomenuitem.h',
'gtkradiotoolbutton.h',
'gtkrange.h',
- 'gtkrecentchooser.h',
- 'gtkrecentchooserdialog.h',
- 'gtkrecentchoosermenu.h',
- 'gtkrecentchooserwidget.h',
- 'gtkrecentfilter.h',
'gtkrecentmanager.h',
'gtkrender.h',
'gtkrevealer.h',
diff --git a/po-properties/POTFILES.in b/po-properties/POTFILES.in
index b686f46..93cc710 100644
--- a/po-properties/POTFILES.in
+++ b/po-properties/POTFILES.in
@@ -226,9 +226,6 @@ gtk/gtkradiobutton.c
gtk/gtkradiomenuitem.c
gtk/gtkradiotoolbutton.c
gtk/gtkrange.c
-gtk/gtkrecentchooser.c
-gtk/gtkrecentchooserdefault.c
-gtk/gtkrecentchoosermenu.c
gtk/gtkrecentmanager.c
gtk/gtkrevealer.c
gtk/gtkscalebutton.c
diff --git a/po-properties/POTFILES.skip b/po-properties/POTFILES.skip
index a8ecc5f..416b27c 100644
--- a/po-properties/POTFILES.skip
+++ b/po-properties/POTFILES.skip
@@ -145,8 +145,6 @@ gtk/ui/gtkplacesviewrow.ui
gtk/ui/gtkplacesview.ui
gtk/ui/gtkprintunixdialog.ui
gtk/ui/gtkprintunixdialog.ui.h
-gtk/ui/gtkrecentchooserdefault.ui
-gtk/ui/gtkrecentchooserdefault.ui.h
gtk/ui/gtksidebarrow.ui
gtk/ui/gtkvolumebutton.ui
gtk/ui/gtkvolumebutton.ui.h
diff --git a/tests/meson.build b/tests/meson.build
index 1e43fa2..75e2d30 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -72,8 +72,6 @@ gtk_tests = [
['testoverlay'],
['testoverlaystyleclass'],
['testprint', ['testprintfileoperation.c']],
- ['testrecentchooser'],
- ['testrecentchoosermenu'],
['testscale'],
['testselectionmode'],
['testspinbutton'],
diff --git a/tests/popupat.ui b/tests/popupat.ui
index e23163c..fbe8c7a 100644
--- a/tests/popupat.ui
+++ b/tests/popupat.ui
@@ -2865,27 +2865,6 @@
</packing>
</child>
<child>
- <object class="GtkRecentChooserWidget" id="recentchooser1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="limit">20</property>
- </object>
- <packing>
- <property name="position">10</property>
- </packing>
- </child>
- <child type="tab">
- <object class="GtkLabel" id="label12">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">GtkRecentChooserDefault</property>
- </object>
- <packing>
- <property name="position">10</property>
- <property name="tab_fill">False</property>
- </packing>
- </child>
- <child>
<object class="GtkColorButton" id="colorselection1">
<property name="visible">True</property>
<property name="can_focus">False</property>
diff --git a/testsuite/gtk/templates.c b/testsuite/gtk/templates.c
index 8344cd5..affd084 100644
--- a/testsuite/gtk/templates.c
+++ b/testsuite/gtk/templates.c
@@ -303,16 +303,6 @@ test_font_chooser_dialog_basic (void)
gtk_widget_destroy (widget);
}
-static void
-test_recent_chooser_widget_basic (void)
-{
- GtkWidget *widget;
-
- widget = gtk_recent_chooser_widget_new ();
- g_assert (GTK_IS_RECENT_CHOOSER_WIDGET (widget));
- gtk_widget_destroy (widget);
-}
-
#ifdef HAVE_UNIX_PRINT_WIDGETS
static void
test_page_setup_unix_dialog_basic (void)
@@ -378,7 +368,6 @@ main (int argc, char **argv)
g_test_add_func ("/Template/GtkFontButton/Basic", test_font_button_basic);
g_test_add_func ("/Template/GtkFontChooserWidget/Basic", test_font_chooser_widget_basic);
g_test_add_func ("/Template/GtkFontChooserDialog/Basic", test_font_chooser_dialog_basic);
- g_test_add_func ("/Template/GtkRecentChooserWidget/Basic", test_recent_chooser_widget_basic);
#ifdef HAVE_UNIX_PRINT_WIDGETS
g_test_add_func ("/Template/UnixPrint/GtkPageSetupUnixDialog/Basic", test_page_setup_unix_dialog_basic);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]