From 5066e4938ce453dcc411654f0e9120794bd43cdd Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 18 May 2009 14:12:59 +0000 Subject: [PATCH] Allow fully customized messages in splash --- evoke/Splash.cpp | 12 ++++-------- evoke/ede-startup.conf | 12 ++++++------ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/evoke/Splash.cpp b/evoke/Splash.cpp index 08ab26c..74ca059 100644 --- a/evoke/Splash.cpp +++ b/evoke/Splash.cpp @@ -10,9 +10,9 @@ * See COPYING for details. */ -#include // snprintf -#include +#include #include +#include #include #include #include @@ -263,13 +263,11 @@ bool Splash::next_client(void) { E_ASSERT(counter < slist->size() && "Internal error; 'counter' out of bounds"); - char buff[1024]; const char* msg = (*slist_it)->description.c_str(); const char* cmd = (*slist_it)->exec.c_str(); - snprintf(buff, sizeof(buff), _("Starting %s..."), msg); icons[counter]->show(); - msgbox->copy_label(buff); + msgbox->label(msg); redraw(); /* run command */ @@ -296,12 +294,10 @@ bool Splash::next_client_nosplash(void) { E_ASSERT(counter < slist->size() && "Internal error; 'counter' out of bounds"); - char buff[1024]; const char* msg = (*slist_it)->description.c_str(); const char* cmd = (*slist_it)->exec.c_str(); - snprintf(buff, sizeof(buff), _("Starting %s..."), msg); - printf("%s\n", buff); + printf("%s\n", msg); /* run command */ if(!dryrun) diff --git a/evoke/ede-startup.conf b/evoke/ede-startup.conf index 642547c..768d485 100644 --- a/evoke/ede-startup.conf +++ b/evoke/ede-startup.conf @@ -6,29 +6,29 @@ [edewm] exec = edewm icon = edewm.png - description = window manager + description = Starting window manager... [ede-desktop] exec = ede-desktop icon = ede-desktop.png - description = desktop + description = Starting desktop... [ede-panel] exec = ede-panel icon = ede-panel.png - description = panel + description = Starting panel... [emountd] exec = emountd icon = emountd.png - description = mount notifier + description = Starting mount notifier... [xscreensaver] exec = xscreensaver -nosplash icon = xscreensaver.png - description = screensaver + description = Starting screensaver... [autostart] exec = ede-autostart --safe icon = autostart.png - description = local programs + description = Loading local programs...