forked from AuroraMiddleware/gtk
editable: Fix a thinko
When dealing with subclasses of GtkEntry, we were not getting the property offset that is stored on the GtkEntry type. This was showing up as criticals when trying to set ::width-chars on a GtkFileChooserEntry.
This commit is contained in:
parent
688f0997f4
commit
26f99bf20c
@ -935,7 +935,10 @@ gtk_editable_delegate_set_property (GObject *object,
|
||||
GType type = G_TYPE_FROM_INSTANCE (object);
|
||||
guint first_prop;
|
||||
|
||||
first_prop = GPOINTER_TO_UINT (g_type_get_qdata (type, quark_editable_data));
|
||||
do {
|
||||
first_prop = GPOINTER_TO_UINT (g_type_get_qdata (type, quark_editable_data));
|
||||
type = g_type_parent (type);
|
||||
} while (first_prop == 0 && type != 0);
|
||||
|
||||
if (prop_id < first_prop)
|
||||
return FALSE;
|
||||
@ -994,7 +997,10 @@ gtk_editable_delegate_get_property (GObject *object,
|
||||
GType type = G_TYPE_FROM_INSTANCE (object);
|
||||
guint first_prop;
|
||||
|
||||
first_prop = GPOINTER_TO_UINT (g_type_get_qdata (type, quark_editable_data));
|
||||
do {
|
||||
first_prop = GPOINTER_TO_UINT (g_type_get_qdata (type, quark_editable_data));
|
||||
type = g_type_parent (type);
|
||||
} while (first_prop == 0 && type != 0);
|
||||
|
||||
if (prop_id < first_prop)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user