[gtk+] inspector: Simplify some code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Simplify some code
- Date: Fri, 28 Nov 2014 04:22:08 +0000 (UTC)
commit d3c96f9f17940132482b0d204caa116b1511a84a
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 27 22:56:46 2014 -0500
inspector: Simplify some code
gtk/inspector/prop-editor.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c
index c0db772..c7787d8 100644
--- a/gtk/inspector/prop-editor.c
+++ b/gtk/inspector/prop-editor.c
@@ -427,9 +427,8 @@ bool_changed (GObject *object, GParamSpec *pspec, gpointer data)
unblock_controller (G_OBJECT (tb));
}
- child = gtk_bin_get_child (GTK_BIN (tb));
- gtk_label_set_text (GTK_LABEL (child),
- g_value_get_boolean (&val) ? "TRUE" : "FALSE");
+ gtk_button_set_label (GTK_BUTTON (tb),
+ g_value_get_boolean (&val) ? "TRUE" : "FALSE");
g_value_unset (&val);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]