[gtk: 2/3] GtkFileFilter: Don't set the name from the GtkBuilder ID



commit b530c83d98d3d64af73c67f8c506eecf8ad07c4c
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Oct 8 10:26:24 2018 +1300

    GtkFileFilter: Don't set the name from the GtkBuilder ID
    
    Don't use the GtkBuilder ID for the filter name - this is an ID, not a human
    readable name. The name can now be set with a property.

 gtk/gtkfilefilter.c | 19 -------------------
 1 file changed, 19 deletions(-)
---
diff --git a/gtk/gtkfilefilter.c b/gtk/gtkfilefilter.c
index 2551fdc714..33ad641065 100644
--- a/gtk/gtkfilefilter.c
+++ b/gtk/gtkfilefilter.c
@@ -143,9 +143,6 @@ static void gtk_file_filter_finalize   (GObject            *object);
 
 
 static void         gtk_file_filter_buildable_init             (GtkBuildableIface  *iface);
-static void         gtk_file_filter_buildable_set_name         (GtkBuildable       *buildable,
-                                                                const gchar        *name);
-static const gchar* gtk_file_filter_buildable_get_name         (GtkBuildable       *buildable);
 
 static gboolean     gtk_file_filter_buildable_custom_tag_start (GtkBuildable       *buildable,
                                                                 GtkBuilder         *builder,
@@ -159,7 +156,6 @@ static void         gtk_file_filter_buildable_custom_tag_end   (GtkBuildable
                                                                 const gchar        *tagname,
                                                                 gpointer            data);
 
-
 G_DEFINE_TYPE_WITH_CODE (GtkFileFilter, gtk_file_filter, G_TYPE_INITIALLY_UNOWNED,
                          G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
                                                 gtk_file_filter_buildable_init))
@@ -279,21 +275,6 @@ gtk_file_filter_buildable_init (GtkBuildableIface *iface)
 {
   iface->custom_tag_start = gtk_file_filter_buildable_custom_tag_start;
   iface->custom_tag_end = gtk_file_filter_buildable_custom_tag_end;
-  iface->set_name = gtk_file_filter_buildable_set_name;
-  iface->get_name = gtk_file_filter_buildable_get_name;
-}
-
-static void
-gtk_file_filter_buildable_set_name (GtkBuildable *buildable,
-                                    const gchar  *name)
-{
-  gtk_file_filter_set_name (GTK_FILE_FILTER (buildable), name);
-}
-
-static const gchar *
-gtk_file_filter_buildable_get_name (GtkBuildable *buildable)
-{
-  return gtk_file_filter_get_name (GTK_FILE_FILTER (buildable));
 }
 
 typedef enum {


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