[gtk/wip/baedert/for-master: 4/7] widget: Fix a from_string/try_string mixup
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 4/7] widget: Fix a from_string/try_string mixup
- Date: Fri, 31 Jan 2020 16:48:00 +0000 (UTC)
commit 73a9cdab25c0112c27894486d5c9a7887fcba2ae
Author: Timm Bäder <mail baedert org>
Date: Fri Jan 31 16:39:12 2020 +0100
widget: Fix a from_string/try_string mixup
gtk/gtkwidget.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a55bfde082..a810a89f87 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13213,7 +13213,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;
@@ -13243,7 +13243,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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]