[gtk+/gtk-3-20] css names are always set



commit 08e508889fd31845c676d915a57684cf1563929e
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 4 12:48:46 2016 -0400

    css names are always set
    
    No need to check for it, we set the css name on GtkWidgetClass
    ourselves.

 gtk/gtkwidget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4ebe69e..6ae8304 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4420,8 +4420,7 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
   gtk_css_node_set_state (priv->cssnode, GTK_STATE_FLAG_DIR_LTR);
   /* need to set correct type here, and only class has the correct type here */
   gtk_css_node_set_widget_type (priv->cssnode, G_TYPE_FROM_CLASS (g_class));
-  if (GTK_WIDGET_CLASS (g_class)->priv->css_name)
-    gtk_css_node_set_name (priv->cssnode, GTK_WIDGET_CLASS (g_class)->priv->css_name);
+  gtk_css_node_set_name (priv->cssnode, GTK_WIDGET_CLASS (g_class)->priv->css_name);
 
   G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   priv->style = gtk_widget_get_default_style ();


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