set active item if found in the list
[simple-launcher] / dialog-entry.cc
index 2d8ea5d..9b37144 100644 (file)
@@ -70,6 +70,10 @@ SettingsDialogIconSizeEntry::SettingsDialogIconSizeEntry(GConfIntegerOption& opt
                        active = i;
                }
        }
+
+       if (active != -1) {
+               gtk_combo_box_set_active(GTK_COMBO_BOX(myWidget), active);
+       }
 }
 
 void SettingsDialogIconSizeEntry::updateValue() {