Now that we're not an applet, we need to call gnome_init() rather than
gtk_init(). Also slipped in some conditionals for the NLS stuff. git-svn-id: https://samskivert.googlecode.com/svn/trunk@283 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* $Id: lookuplet.c,v 1.3 2001/02/24 02:45:18 mdb Exp $
|
* $Id: lookuplet.c,v 1.4 2001/08/16 19:26:31 mdb Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@@ -20,12 +20,14 @@ main (int argc, char** argv)
|
|||||||
GtkWidget* window;
|
GtkWidget* window;
|
||||||
GtkWidget* contents;
|
GtkWidget* contents;
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
/* initialize the i18n stuff */
|
/* initialize the i18n stuff */
|
||||||
bindtextdomain(PACKAGE, GNOMELOCALEDIR);
|
bindtextdomain(PACKAGE, GNOMELOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* initialize gtk */
|
/* initialize gnome */
|
||||||
gtk_init(&argc, &argv);
|
gnome_init(PACKAGE, VERSION, argc, argv);
|
||||||
|
|
||||||
/* initialize our preferences */
|
/* initialize our preferences */
|
||||||
lk_prefs_init();
|
lk_prefs_init();
|
||||||
|
|||||||
Reference in New Issue
Block a user