mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
Merge branch 'wip/exalm/window-polish' into 'master'
window: Fix tiled style class names See merge request GNOME/gtk!1949
This commit is contained in:
commit
f5f4c3cdfc
@ -4493,29 +4493,29 @@ update_window_style_classes (GtkWindow *window)
|
||||
if (!priv->edge_constraints)
|
||||
{
|
||||
if (priv->tiled)
|
||||
gtk_widget_add_css_class (widget, "titled");
|
||||
gtk_widget_add_css_class (widget, "tiled");
|
||||
else
|
||||
gtk_widget_remove_css_class (widget, "tiled");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (edge_constraints & GDK_SURFACE_STATE_TOP_TILED)
|
||||
gtk_widget_add_css_class (widget, "titled-top");
|
||||
gtk_widget_add_css_class (widget, "tiled-top");
|
||||
else
|
||||
gtk_widget_remove_css_class (widget, "tiled-top");
|
||||
|
||||
if (edge_constraints & GDK_SURFACE_STATE_RIGHT_TILED)
|
||||
gtk_widget_add_css_class (widget, "titled-right");
|
||||
gtk_widget_add_css_class (widget, "tiled-right");
|
||||
else
|
||||
gtk_widget_remove_css_class (widget, "tiled-right");
|
||||
|
||||
if (edge_constraints & GDK_SURFACE_STATE_BOTTOM_TILED)
|
||||
gtk_widget_add_css_class (widget, "titled-bottom");
|
||||
gtk_widget_add_css_class (widget, "tiled-bottom");
|
||||
else
|
||||
gtk_widget_remove_css_class (widget, "tiled-bottom");
|
||||
|
||||
if (edge_constraints & GDK_SURFACE_STATE_LEFT_TILED)
|
||||
gtk_widget_add_css_class (widget, "titled-left");
|
||||
gtk_widget_add_css_class (widget, "tiled-left");
|
||||
else
|
||||
gtk_widget_remove_css_class (widget, "tiled-left");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user