summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2012-10-13 12:08:11 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2012-10-13 12:08:11 -0300
commitee2820fce6073513f217c2915c63f5b7db2c6f9a (patch)
tree8bdcbd871468330f459066a571bf34064a298fe7
parentab0b1d401592fc135880ed79cd66a9628bed737b (diff)
downloadglade-ee2820fce6073513f217c2915c63f5b7db2c6f9a.tar.gz
Fix build warnings
-rw-r--r--plugins/gtk+/glade-gtk-activatable.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/gtk+/glade-gtk-activatable.c b/plugins/gtk+/glade-gtk-activatable.c
index 244fc1fc..7cf9bf5e 100644
--- a/plugins/gtk+/glade-gtk-activatable.c
+++ b/plugins/gtk+/glade-gtk-activatable.c
@@ -77,10 +77,8 @@ glade_gtk_activatable_evaluate_property_sensitivity (GObject *object,
if (!strcmp (id, "related-action"))
{
- gboolean use_appearance = gtk_activatable_get_use_action_appearance (GTK_ACTIVATABLE (object));
- GtkAction *action = g_value_get_object (value);
-
- update_use_action_appearance (gwidget, TRUE, action);
+ update_use_action_appearance (gwidget, TRUE,
+ g_value_get_object (value) != NULL);
}
else if (!strcmp (id, "use-action-appearance"))
{