[gtk/wip/otte/bitset: 11/22] gtk: Remove GtkPropertySelection



commit 488b0cbb698f2c85de7d0189eb14482c958441e4
Author: Benjamin Otte <otte redhat com>
Date:   Sun Jun 21 18:03:25 2020 +0200

    gtk: Remove GtkPropertySelection
    
    GtkMultiSelection is so much faster than this that it isn't needed.

 docs/reference/gtk/gtk4-docs.xml     |   1 -
 docs/reference/gtk/gtk4-sections.txt |  11 -
 docs/reference/gtk/gtk4.types.in     |   1 -
 gtk/gtk.h                            |   1 -
 gtk/gtkpropertyselection.c           | 380 -----------------------------------
 gtk/gtkpropertyselection.h           |  45 -----
 gtk/meson.build                      |   2 -
 po-properties/POTFILES.in            |   1 -
 po/POTFILES.in                       |   1 -
 testsuite/gtk/defaultvalue.c         |   3 -
 testsuite/gtk/notify.c               |   4 -
 testsuite/gtk/objects-finalize.c     |   3 +-
 12 files changed, 1 insertion(+), 452 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-docs.xml b/docs/reference/gtk/gtk4-docs.xml
index 2351a3688b..f6a46015cc 100644
--- a/docs/reference/gtk/gtk4-docs.xml
+++ b/docs/reference/gtk/gtk4-docs.xml
@@ -73,7 +73,6 @@
         <xi:include href="xml/gtknoselection.xml" />
         <xi:include href="xml/gtksingleselection.xml" />
         <xi:include href="xml/gtkmultiselection.xml" />
-      <xi:include href="xml/gtkpropertyselection.xml" />
       </section>
       <xi:include href="xml/gtkbookmarklist.xml" />
       <xi:include href="xml/gtkdirectorylist.xml" />
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 739415f6cd..ec497c66ea 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -448,17 +448,6 @@ gtk_multi_selection_new
 gtk_multi_selection_get_type
 </SECTION>
 
-<SECTION>
-<FILE>gtkpropertyselection</FILE>
-<TITLE>GtkPropertySelection</TITLE>
-GtkPropertySelection
-gtk_property_selection_new
-gtk_property_selection_get_model
-gtk_property_selection_get_property
-<SUBSECTION Private>
-gtk_property_selection_get_type
-</SECTION>
-
 <SECTION>
 <FILE>gtklistitem</FILE>
 <TITLE>GtkListItem</TITLE>
diff --git a/docs/reference/gtk/gtk4.types.in b/docs/reference/gtk/gtk4.types.in
index 9090e496c8..d61305ae2e 100644
--- a/docs/reference/gtk/gtk4.types.in
+++ b/docs/reference/gtk/gtk4.types.in
@@ -172,7 +172,6 @@ gtk_print_operation_preview_get_type
 gtk_print_settings_get_type
 @DISABLE_ON_W32@gtk_print_unix_dialog_get_type
 gtk_progress_bar_get_type
-gtk_property_selection_get_type
 gtk_radio_button_get_type
 gtk_range_get_type
 gtk_recent_manager_get_type
diff --git a/gtk/gtk.h b/gtk/gtk.h
index 0aa7ad888e..f4c105e6e5 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -201,7 +201,6 @@
 #include <gtk/gtkprintoperationpreview.h>
 #include <gtk/gtkprintsettings.h>
 #include <gtk/gtkprogressbar.h>
-#include <gtk/gtkpropertyselection.h>
 #include <gtk/gtkradiobutton.h>
 #include <gtk/gtkrange.h>
 #include <gtk/gtkrecentmanager.h>
diff --git a/gtk/meson.build b/gtk/meson.build
index 4eb26952f6..5a7ca5715f 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -329,7 +329,6 @@ gtk_public_sources = files([
   'gtkprintsettings.c',
   'gtkprogressbar.c',
   'gtkpropertylookuplistmodel.c',
-  'gtkpropertyselection.c',
   'gtkradiobutton.c',
   'gtkrange.c',
   'gtktreerbtree.c',
@@ -607,7 +606,6 @@ gtk_public_headers = files([
   'gtkprintoperationpreview.h',
   'gtkprintsettings.h',
   'gtkprogressbar.h',
-  'gtkpropertyselection.h',
   'gtkradiobutton.h',
   'gtkrange.h',
   'gtkrecentmanager.h',
diff --git a/po-properties/POTFILES.in b/po-properties/POTFILES.in
index a89edb2ce4..64513074de 100644
--- a/po-properties/POTFILES.in
+++ b/po-properties/POTFILES.in
@@ -255,7 +255,6 @@ gtk/gtkprintoperation-win32.c
 gtk/gtkprintunixdialog.c
 gtk/gtkprogressbar.c
 gtk/gtkpropertylookuplistmodel.c
-gtk/gtkpropertyselection.c
 gtk/gtkradiobutton.c
 gtk/gtkrange.c
 gtk/gtkrecentmanager.c
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7ca93df204..604d5c8397 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -257,7 +257,6 @@ gtk/gtkprintoperation-win32.c
 gtk/gtkprintunixdialog.c
 gtk/gtkprogressbar.c
 gtk/gtkpropertylookuplistmodel.c
-gtk/gtkpropertyselection.c
 gtk/gtkradiobutton.c
 gtk/gtkrange.c
 gtk/gtkrecentmanager.c
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 15c9047a93..34e6fb9f18 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -104,9 +104,6 @@ test_type (gconstpointer data)
       g_type_is_a (type, GTK_TYPE_SHORTCUT_ACTION))
     return;
 
-  if (g_type_is_a (type, GTK_TYPE_PROPERTY_SELECTION))
-    return;
-
   klass = g_type_class_ref (type);
 
   if (g_type_is_a (type, GTK_TYPE_SETTINGS))
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 209685ed38..ddd806948d 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -425,10 +425,6 @@ test_type (gconstpointer data)
      g_type_is_a (type, GTK_TYPE_NAMED_ACTION))
     return;
 
-  /* needs special item type in underlying model */
-  if (g_type_is_a (type, GTK_TYPE_PROPERTY_SELECTION))
-    return;
-
   klass = g_type_class_ref (type);
 
   if (g_type_is_a (type, GTK_TYPE_SETTINGS))
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index bd26c83c23..e46f404424 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -80,8 +80,7 @@ test_finalize_object (gconstpointer data)
                              NULL);
       g_object_unref (list_store);
     }
-  else if (g_type_is_a (test_type, GTK_TYPE_LAYOUT_CHILD) ||
-           g_type_is_a (test_type, GTK_TYPE_PROPERTY_SELECTION))
+  else if (g_type_is_a (test_type, GTK_TYPE_LAYOUT_CHILD))
     {
       char *msg = g_strdup_printf ("Skipping %s", g_type_name (test_type));
       g_test_skip (msg);


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