shortcuts: Make sure that hidden shortcuts stay hidden
When doing a gtk_widget_show_all() on the shortcuts window, accelerators for both RTL and LTR directions are being shown. Make sure that no-show-all is set by default on hidden shortcuts, and updated if the widget direction changes. https://bugzilla.gnome.org/show_bug.cgi?id=759541
This commit is contained in:
parent
6c91f5670c
commit
a56a8a8c02
@ -259,9 +259,15 @@ update_visible_from_direction (GtkShortcutsShortcut *self)
|
|||||||
{
|
{
|
||||||
if (self->direction == GTK_TEXT_DIR_NONE ||
|
if (self->direction == GTK_TEXT_DIR_NONE ||
|
||||||
self->direction == gtk_widget_get_direction (GTK_WIDGET (self)))
|
self->direction == gtk_widget_get_direction (GTK_WIDGET (self)))
|
||||||
gtk_widget_set_visible (GTK_WIDGET (self), TRUE);
|
{
|
||||||
|
gtk_widget_set_visible (GTK_WIDGET (self), TRUE);
|
||||||
|
gtk_widget_set_no_show_all (GTK_WIDGET (self), FALSE);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
gtk_widget_set_visible (GTK_WIDGET (self), FALSE);
|
{
|
||||||
|
gtk_widget_set_visible (GTK_WIDGET (self), FALSE);
|
||||||
|
gtk_widget_set_no_show_all (GTK_WIDGET (self), TRUE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user