summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-13 16:18:27 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-13 16:18:27 +0000
commit3196208daed2949bde6fc175d4c54eeb3f9f2075 (patch)
tree01c68761a8c5bde4f98d8d7c45c328a601dd374e
parente6cd7ce1b8e39ccfbef09e34605aa71890ea4a5b (diff)
downloaddrakmenustyle-3196208daed2949bde6fc175d4c54eeb3f9f2075.tar
drakmenustyle-3196208daed2949bde6fc175d4c54eeb3f9f2075.tar.gz
drakmenustyle-3196208daed2949bde6fc175d4c54eeb3f9f2075.tar.bz2
drakmenustyle-3196208daed2949bde6fc175d4c54eeb3f9f2075.tar.xz
drakmenustyle-3196208daed2949bde6fc175d4c54eeb3f9f2075.zip
reuse any::ask_for_X_restart()
-rwxr-xr-xdrakmenustyle8
1 files changed, 1 insertions, 7 deletions
diff --git a/drakmenustyle b/drakmenustyle
index d950bad..f1646bc 100755
--- a/drakmenustyle
+++ b/drakmenustyle
@@ -65,12 +65,6 @@ if ($value eq 'use_system_settings') {
setVarsInSh($cfg_file, { MDV_MENU_STYLE => $value });
}
-my $msg = N("The change is done, but to be effective you must logout");
if ($old_value ne $value) {
- if (my $wm = $> && any::running_window_manager()) {
- $in->ask_yesorno('', $msg, 1)
- and any::ask_window_manager_to_logout($wm);
- } else {
- $in->ask_warn('', $msg);
- }
+ any::ask_for_X_restart($in);
}