From f487c6e531d14d8dc217d746b7576b064dc3a44d Mon Sep 17 00:00:00 2001 From: joncruz Date: Sat, 26 Apr 2008 07:16:15 +0000 Subject: [PATCH] Fixed setting property at wrong time --- src/ege-select-one-action.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ege-select-one-action.cpp b/src/ege-select-one-action.cpp index 463011990..20967c9e7 100644 --- a/src/ege-select-one-action.cpp +++ b/src/ege-select-one-action.cpp @@ -577,7 +577,9 @@ GtkWidget* create_tool_item( GtkAction* action ) if ( act->private_data->iconProperty >= 0 ) { /* TODO get this string to be set instead of hardcoded */ - g_object_set( G_OBJECT(obj), "iconSize", act->private_data->iconSize, NULL ); + if ( act->private_data->iconSize >= 0 ) { + g_object_set( G_OBJECT(obj), "iconSize", act->private_data->iconSize, NULL ); + } } ract = GTK_RADIO_ACTION(obj); -- 2.30.2