[gnome-terminal/gnome-3-20] screen: container: Set widget CSS name



commit 4e3f7c8a3ed59ccae54890d23c22128a562b7f74
Author: Christian Persch <chpe gnome org>
Date:   Thu Sep 29 18:45:11 2016 +0200

    screen: container: Set widget CSS name
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772134
    (cherry picked from commit a0619ec305525f8bd245e6baaef934235cbf932e)

 src/terminal-screen-container.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-screen-container.c b/src/terminal-screen-container.c
index 1864712..c6571e7 100644
--- a/src/terminal-screen-container.c
+++ b/src/terminal-screen-container.c
@@ -45,6 +45,8 @@ enum
 
 G_DEFINE_TYPE (TerminalScreenContainer, terminal_screen_container, GTK_TYPE_OVERLAY)
 
+#define TERMINAL_SCREEN_CONTAINER_CSS_NAME "terminal-screen-container"
+
 /* helper functions */
 
 /* Widget class implementation */
@@ -188,6 +190,10 @@ terminal_screen_container_class_init (TerminalScreenContainerClass *klass)
 
   widget_class->style_updated = terminal_screen_container_style_updated;
 
+#if GTK_CHECK_VERSION(3, 19, 5)
+  gtk_widget_class_set_css_name(widget_class, TERMINAL_SCREEN_CONTAINER_CSS_NAME);
+#endif
+
   g_object_class_install_property
     (gobject_class,
      PROP_SCREEN,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]