inspector: Simplify some code

This commit is contained in:
Matthias Clasen 2014-11-27 22:56:46 -05:00
parent bb5574c0bd
commit d3c96f9f17

View File

@ -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);
}