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.
This commit is contained in:
Robert Ancell 2018-10-08 10:26:24 +13:00
parent b83caec6b9
commit b530c83d98

View File

@ -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 {