Allow fully customized messages in splash

This commit is contained in:
Sanel Zukan
2009-05-18 14:12:59 +00:00
parent 28a2664083
commit 5066e4938c
2 changed files with 10 additions and 14 deletions

View File

@ -10,9 +10,9 @@
* See COPYING for details.
*/
#include <stdio.h> // snprintf
#include <FL/Fl_Shared_Image.H>
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Shared_Image.H>
#include <edelib/Debug.h>
#include <edelib/Nls.h>
#include <edelib/Util.h>
@ -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)