summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-print-preview.c4
-rw-r--r--pluma/pluma-window.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/pluma/pluma-print-preview.c b/pluma/pluma-print-preview.c
index ab111b6f..5a54e7fc 100644
--- a/pluma/pluma-print-preview.c
+++ b/pluma/pluma-print-preview.c
@@ -1006,6 +1006,10 @@ pluma_print_preview_init (PlumaPrintPreview *preview)
priv->gtk_preview = NULL;
#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (preview));
+ gtk_style_context_add_class (context, "pluma-print-preview");
gtk_orientable_set_orientation (GTK_ORIENTABLE (preview),
GTK_ORIENTATION_VERTICAL);
#endif
diff --git a/pluma/pluma-window.c b/pluma/pluma-window.c
index 15111e54..23cdcae0 100644
--- a/pluma/pluma-window.c
+++ b/pluma/pluma-window.c
@@ -3843,6 +3843,13 @@ pluma_window_init (PlumaWindow *window)
window->priv->window_group = gtk_window_group_new ();
gtk_window_group_add_window (window->priv->window_group, GTK_WINDOW (window));
+#if GTK_CHECK_VERSION(3, 0, 0)
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (window));
+ gtk_style_context_add_class (context, "pluma-window");
+#endif
+
main_box = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), main_box);
gtk_widget_show (main_box);