From 50987c7cf02610ec8e68e86c08a201a80d156179 Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 16 Aug 2001 19:26:31 +0000 Subject: [PATCH] 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 --- projects/lookuplet/src/c/lookuplet.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/lookuplet/src/c/lookuplet.c b/projects/lookuplet/src/c/lookuplet.c index d2cb39a1..e01866cc 100644 --- a/projects/lookuplet/src/c/lookuplet.c +++ b/projects/lookuplet/src/c/lookuplet.c @@ -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 @@ -20,12 +20,14 @@ main (int argc, char** argv) GtkWidget* window; GtkWidget* contents; +#ifdef ENABLE_NLS /* initialize the i18n stuff */ bindtextdomain(PACKAGE, GNOMELOCALEDIR); textdomain(PACKAGE); +#endif - /* initialize gtk */ - gtk_init(&argc, &argv); + /* initialize gnome */ + gnome_init(PACKAGE, VERSION, argc, argv); /* initialize our preferences */ lk_prefs_init();