summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index d57f8a051d..646b5658a1 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5072,7 +5072,6 @@ update_window_buttons (GtkWindow *window)
image = gtk_image_new_from_icon_name ("window-minimize-symbolic", GTK_ICON_SIZE_MENU);
g_object_set (image, "use-fallback", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (button), image);
- gtk_style_context_add_class (gtk_widget_get_style_context (button), "window-minimize-button");
gtk_widget_set_can_focus (button, FALSE);
gtk_widget_show_all (button);
g_signal_connect (button, "clicked",
@@ -5090,7 +5089,6 @@ update_window_buttons (GtkWindow *window)
image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
g_object_set (image, "use-fallback", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (button), image);
- gtk_style_context_add_class (gtk_widget_get_style_context (button), "window-maximize-button");
gtk_widget_set_can_focus (button, FALSE);
gtk_widget_show_all (button);
g_signal_connect (button, "clicked",
@@ -5105,7 +5103,6 @@ update_window_buttons (GtkWindow *window)
image = gtk_image_new_from_icon_name ("window-delete-symbolic", GTK_ICON_SIZE_MENU);
g_object_set (image, "use-fallback", TRUE, NULL);
gtk_container_add (GTK_CONTAINER (button), image);
- gtk_style_context_add_class (gtk_widget_get_style_context (button), "window-close-button");
gtk_widget_set_can_focus (button, FALSE);
gtk_widget_show_all (button);
g_signal_connect (button, "clicked",
@@ -5137,22 +5134,6 @@ update_window_buttons (GtkWindow *window)
}
static void
-set_client_decorated (GtkWidget *widget,
- gboolean value)
-{
- GtkStyleContext *context;
- GtkWindowPrivate *priv = GTK_WINDOW (widget)->priv;
-
- context = gtk_widget_get_style_context (widget);
- priv->client_decorated = value;
-
- if (value)
- gtk_style_context_add_class (context, "client-decorated");
- else
- gtk_style_context_remove_class (context, "client-decorated");
-}
-
-static void
create_decoration (GtkWidget *widget)
{
GtkWindow *window = GTK_WINDOW (widget);
@@ -5172,7 +5153,7 @@ create_decoration (GtkWidget *widget)
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
- set_client_decorated (widget, TRUE);
+ priv->client_decorated = TRUE;
#endif
if (!priv->client_decorated &&
@@ -5185,7 +5166,7 @@ create_decoration (GtkWidget *widget)
if (visual)
{
gtk_widget_set_visual (widget, visual);
- set_client_decorated (widget, TRUE);
+ priv->client_decorated = TRUE;
}
}