summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-09-26 18:08:46 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-09-26 18:08:46 -0400
commit92e52fd18883190ba4b6bf712471172658629f8f (patch)
treed4eb63ea257a64e22680b4c577b0014d0834c047
parent8e1878bc320cecffedaa8747db18ca042461002e (diff)
downloadgtk+-92e52fd18883190ba4b6bf712471172658629f8f.tar.gz
Add a style class to fullscreened windows
This will let us tweak stuff that gets shown in fullscreen windows, https://bugzilla.gnome.org/show_bug.cgi?id=654051
-rw-r--r--gtk/gtkwindow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e905d349b7..8a5b54b65f 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7149,6 +7149,11 @@ update_window_style_classes (GtkWindow *window)
gtk_style_context_add_class (context, "maximized");
else
gtk_style_context_remove_class (context, "maximized");
+
+ if (priv->fullscreen)
+ gtk_style_context_add_class (context, "fullscreen");
+ else
+ gtk_style_context_remove_class (context, "fullscreen");
}
static void