From abea4782c4451c7160d66a4d9df991c9da9bef7e Mon Sep 17 00:00:00 2001 From: mishas Date: Tue, 20 Mar 2007 06:36:29 +0000 Subject: [PATCH] first implementation of settings processing git-svn-id: file:///svnroot/simple-launcher/trunk@84 3ba93dab-e023-0410-b42a-de7732cf370a --- simple-launcher.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/simple-launcher.cc b/simple-launcher.cc index b9c894c..8b8966c 100644 --- a/simple-launcher.cc +++ b/simple-launcher.cc @@ -326,7 +326,9 @@ void SimpleLauncherApplet::_run_dialog(GtkMenuItem *, void *self) { } void SimpleLauncherApplet::runDialog() { - SLAList list(SL_APPLET_ICON_SIZE, myItems); + LauncherItems newItems = myItems; + + SLAList list(SL_APPLET_ICON_SIZE, newItems); GtkDialog *dialog = GTK_DIALOG(gtk_dialog_new_with_buttons("Launcher Settings", myParent, (GtkDialogFlags)(GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT), "OK", GTK_RESPONSE_OK, "Cancel", GTK_RESPONSE_CANCEL, NULL)); @@ -340,6 +342,9 @@ void SimpleLauncherApplet::runDialog() { switch (response) { case GTK_RESPONSE_OK: + myItems = newItems; + updateWidget(); + saveConfig(); break; case GTK_RESPONSE_CANCEL: -- 1.7.9.5