widget: Fix a from_string/try_string mixup
authorTimm Bäder <mail@baedert.org>
Fri, 31 Jan 2020 15:39:12 +0000 (16:39 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 7 Feb 2020 18:15:59 +0000 (13:15 -0500)
gtk/gtkwidget.c

index 79554ff3af1b1d47e127309790f371a2bbf49820..14fd2e86122aa4955bf405392d3e6f17577def6a 100644 (file)
@@ -13178,7 +13178,7 @@ gtk_widget_remove_style_class (GtkWidget  *widget,
   g_return_if_fail (style_class[0] != '\0');
   g_return_if_fail (style_class[0] != '.');
 
-  class_quark = g_quark_from_string (style_class);
+  class_quark = g_quark_try_string (style_class);
   if (!class_quark)
     return;
 
@@ -13208,7 +13208,7 @@ gtk_widget_has_style_class (GtkWidget  *widget,
   g_return_val_if_fail (style_class[0] != '\0', FALSE);
   g_return_val_if_fail (style_class[0] != '.', FALSE);
 
-  class_quark = g_quark_from_string (style_class);
+  class_quark = g_quark_try_string (style_class);
   if (!class_quark)
     return FALSE;