Code

Fixed setting property at wrong time
authorjoncruz <joncruz@users.sourceforge.net>
Sat, 26 Apr 2008 07:16:15 +0000 (07:16 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Sat, 26 Apr 2008 07:16:15 +0000 (07:16 +0000)
src/ege-select-one-action.cpp

index 463011990b6e8bab969d205f57234a9e61131369..20967c9e7e5bcc8bbc34693490cb9557fa034dc8 100644 (file)
@@ -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);