From 6a22295b5963c0f1a51e6f3f1231daf1996bb0ec Mon Sep 17 00:00:00 2001 From: mishas Date: Fri, 11 May 2007 13:24:19 +0000 Subject: [PATCH] set active item if found in the list git-svn-id: file:///svnroot/simple-launcher/trunk@204 3ba93dab-e023-0410-b42a-de7732cf370a --- dialog-entry.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dialog-entry.cc b/dialog-entry.cc index 2d8ea5d..9b37144 100644 --- a/dialog-entry.cc +++ b/dialog-entry.cc @@ -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() { -- 1.7.9.5