[glade] Fix build warnings
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Fix build warnings
- Date: Sat, 13 Oct 2012 16:12:42 +0000 (UTC)
commit ee2820fce6073513f217c2915c63f5b7db2c6f9a
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Sat Oct 13 12:08:11 2012 -0300
Fix build warnings
plugins/gtk+/glade-gtk-activatable.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-activatable.c b/plugins/gtk+/glade-gtk-activatable.c
index 244fc1f..7cf9bf5 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"))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]