diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-02-06 03:50:04 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-06 03:50:04 +0100 |
commit | 1b313dd645030fc18dd37817a02705c41dde571e (patch) | |
tree | 1afc7ac7524bea9b9355f279a8fc0ea61926de1e | |
parent | 9fce9762c9f16ebd20d3813975bc75d786380641 (diff) | |
download | pluma-1b313dd645030fc18dd37817a02705c41dde571e.tar.bz2 pluma-1b313dd645030fc18dd37817a02705c41dde571e.tar.xz |
GTK+3: add style class pluma-window and pluma-print-preview
-rw-r--r-- | pluma/pluma-print-preview.c | 4 | ||||
-rw-r--r-- | pluma/pluma-window.c | 7 |
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); |