[gtk+] style context: Don't use g_warning for API misuse
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] style context: Don't use g_warning for API misuse
- Date: Mon, 21 Mar 2016 00:53:45 +0000 (UTC)
commit 5c63ab26da9297306290eb1aa540ac34caf80b9a
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 17 21:48:53 2016 -0400
style context: Don't use g_warning for API misuse
We've changed our API here; what these applications are doing
used to be fine. Don't make users suffer for this by spamming their
logs in a stable release. We'll keep the warning in master.
https://bugzilla.gnome.org/show_bug.cgi?id=763796
gtk/gtkstylecontext.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index ed1ad91..f5da8ca 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -508,13 +508,13 @@ gtk_style_context_push_state (GtkStyleContext *context,
else if (GTK_IS_CSS_WIDGET_NODE (root))
{
GtkWidget *widget = gtk_css_widget_node_get_widget (GTK_CSS_WIDGET_NODE (root));
- g_warning ("State %u for %s %p doesn't match state %u set via gtk_style_context_set_state ()",
- state, gtk_widget_get_name (widget), widget, gtk_css_node_get_state (priv->cssnode));
+ g_debug ("State %u for %s %p doesn't match state %u set via gtk_style_context_set_state ()",
+ state, gtk_widget_get_name (widget), widget, gtk_css_node_get_state (priv->cssnode));
}
else
{
- g_warning ("State %u for context %p doesn't match state %u set via gtk_style_context_set_state ()",
- state, context, gtk_css_node_get_state (priv->cssnode));
+ g_debug ("State %u for context %p doesn't match state %u set via gtk_style_context_set_state ()",
+ state, context, gtk_css_node_get_state (priv->cssnode));
}
gtk_css_node_set_state (priv->cssnode, state);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]