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



commit 85a342216ff3a1e9df1f5d891e781bc8fb0bd8fb
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 a032fe7..e1d0942 100644
--- a/src/terminal-screen-container.c
+++ b/src/terminal-screen-container.c
@@ -51,6 +51,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 */
@@ -222,6 +224,10 @@ terminal_screen_container_class_init (TerminalScreenContainerClass *klass)
   widget_class->style_updated = terminal_screen_container_style_updated;
 #endif
 
+#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]