mirror of
https://gitlab.gnome.org/GNOME/glade.git
synced 2025-12-08 00:04:56 -05:00
Fixed bug with iface props, they were getting listed once per implementing
* gladeui/glade-widget-adaptor.c: Fixed bug with iface props, they were getting listed once per implementing subclass (subclasses of implementors had it listed > 2 times). svn path=/trunk/; revision=2058
This commit is contained in:
parent
20ffe751e3
commit
cd5e15cc49
@ -3,6 +3,9 @@
|
|||||||
* gladeui/glade-inspector.c: Added GCompletion/GtkTreeModelFilter to the inspector with
|
* gladeui/glade-inspector.c: Added GCompletion/GtkTreeModelFilter to the inspector with
|
||||||
a new search entry.
|
a new search entry.
|
||||||
|
|
||||||
|
* gladeui/glade-widget-adaptor.c: Fixed bug with iface props, they were getting listed
|
||||||
|
once per implementing subclass (subclasses of implementors had it listed > 2 times).
|
||||||
|
|
||||||
2008-11-25 Tristan Van Berkom <tvb@gnome.org>
|
2008-11-25 Tristan Van Berkom <tvb@gnome.org>
|
||||||
|
|
||||||
* gladeui/glade-utils.c: Hijack the cntl-n accelerator too now.
|
* gladeui/glade-utils.c: Hijack the cntl-n accelerator too now.
|
||||||
|
|||||||
@ -405,31 +405,21 @@ gwa_setup_introspected_props_from_pspecs (GladeWidgetAdaptor *adaptor,
|
|||||||
{
|
{
|
||||||
GladeWidgetAdaptor *parent_adaptor = gwa_get_parent_adaptor (adaptor);
|
GladeWidgetAdaptor *parent_adaptor = gwa_get_parent_adaptor (adaptor);
|
||||||
GladePropertyClass *property_class;
|
GladePropertyClass *property_class;
|
||||||
GType class_type;
|
|
||||||
gint i;
|
gint i;
|
||||||
GList *list = NULL;
|
GList *list = NULL;
|
||||||
|
|
||||||
for (i = 0; i < n_specs; i++)
|
for (i = 0; i < n_specs; i++)
|
||||||
{
|
{
|
||||||
gboolean found;
|
if (parent_adaptor == NULL ||
|
||||||
|
(!is_packing && !glade_widget_adaptor_get_property_class (parent_adaptor,
|
||||||
/* Only create properties that dont exist on the adaptor yet */
|
specs[i]->name)) ||
|
||||||
for (found = FALSE, class_type = adaptor->type;
|
(is_packing && !glade_widget_adaptor_get_pack_property_class (parent_adaptor,
|
||||||
((!parent_adaptor && class_type != 0) ||
|
specs[i]->name)))
|
||||||
( parent_adaptor && class_type != parent_adaptor->type));
|
{
|
||||||
class_type = g_type_parent (class_type))
|
if ((property_class =
|
||||||
if (specs[i]->owner_type == class_type ||
|
glade_property_class_new_from_spec (adaptor, specs[i])) != NULL)
|
||||||
(G_TYPE_IS_INTERFACE (specs[i]->owner_type) &&
|
list = g_list_prepend (list, property_class);
|
||||||
glade_util_class_implements_interface (class_type, specs[i]->owner_type)))
|
}
|
||||||
{
|
|
||||||
found = TRUE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (found &&
|
|
||||||
(property_class =
|
|
||||||
glade_property_class_new_from_spec (adaptor, specs[i])) != NULL)
|
|
||||||
list = g_list_prepend (list, property_class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_packing)
|
if (is_packing)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user