shortcuts: Avoid excessive property notification
Notifying needlessly causes unnecessary work, and causes our testsuite to fail.
This commit is contained in:
@ -137,6 +137,8 @@ gtk_shortcuts_shortcut_set_direction (GtkShortcutsShortcut *self,
|
|||||||
self->direction = direction;
|
self->direction = direction;
|
||||||
|
|
||||||
update_visible (self);
|
update_visible (self);
|
||||||
|
|
||||||
|
g_object_notify (G_OBJECT (self), "direction");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -299,7 +301,7 @@ gtk_shortcuts_shortcut_class_init (GtkShortcutsShortcutClass *klass)
|
|||||||
P_("Direction"),
|
P_("Direction"),
|
||||||
GTK_TYPE_TEXT_DIRECTION,
|
GTK_TYPE_TEXT_DIRECTION,
|
||||||
GTK_TEXT_DIR_NONE,
|
GTK_TEXT_DIR_NONE,
|
||||||
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
|
||||||
|
|
||||||
g_object_class_install_properties (object_class, LAST_PROP, properties);
|
g_object_class_install_properties (object_class, LAST_PROP, properties);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user