Use EDE_APPLICATION to init localization code and set default (and much saner) font size.

This commit is contained in:
Sanel Zukan
2010-03-28 12:54:45 +00:00
parent e4ec7c9861
commit 39b5181ad5
18 changed files with 100 additions and 54 deletions

View File

@ -10,6 +10,10 @@
* See COPYING for the details.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
@ -22,7 +26,6 @@
#include <FL/Fl_Box.H>
#include <FL/Fl_Pixmap.H>
#include <edelib/Nls.h>
#include <edelib/Resource.h>
#include <edelib/DesktopFile.h>
#include <edelib/File.h>
@ -30,6 +33,7 @@
#include <edelib/Util.h>
#include <edelib/MessageBox.h>
#include <edelib/Directory.h>
#include <edelib/Ede.h>
#include "icons/hint.xpm"
#include "Fortune.h"
@ -164,6 +168,8 @@ void prev_cb(Fl_Widget*, void*) {
}
int main(int argc, char **argv) {
EDE_APPLICATION("ede-tip");
ffile = load_fortune_file();
// initialize random number only if we loaded tips