#include "prefs-dialog.h"
#include "debug.h"
-#ifdef PACKAGE_DATA_DIR
-#define LOGO_PIXMAP (PACKAGE_DATA_DIR "/pixmaps/glabels/glabels-about-logo.png")
-#else
-#define LOGO_PIXMAP gnome_pixmap_file("glabels/glabels-about-logo.png")
-#endif
+#define LOGO_PIXMAP gnome_program_locate_file (NULL,\
+ GNOME_FILE_DOMAIN_APP_PIXMAP,\
+ "glabels/glabels-about-logo.png",\
+ FALSE, NULL)
\f
/****************************************************************************/
/* Main */
/*****************************************************************************/
int
-main (int argc,
- char *argv[])
+main (int argc, char **argv)
{
poptContext pctx;
gchar **args;
glLabel *label = NULL;
glXMLLabelStatus status;
- bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
- textdomain (PACKAGE);
+ bindtextdomain (GETTEXT_PACKAGE, GLABELS_LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
gtk_type_init ();
#include "file.h"
#include "debug.h"
-#ifdef PACKAGE_DATA_DIR
-#define ICON_PIXMAP (PACKAGE_DATA_DIR "/pixmaps/glabels/glabels-icon.png")
-#else
-#define ICON_PIXMAP gnome_pixmap_file("glabels/glabels-icon.png")
-#endif
+#define ICON_PIXMAP gnome_program_locate_file (NULL,\
+ GNOME_FILE_DOMAIN_APP_PIXMAP,\
+ "glabels/glabels-icon.png",\
+ FALSE, NULL)
glMDI *glabels_mdi = NULL;
gboolean glabels_close_x_button_pressed = FALSE;
/* Initialize gnome program */
program = gnome_program_init ("glabels", VERSION,
- LIBGNOMEUI_MODULE, argc, argv,
- GNOME_PARAM_POPT_TABLE, options,
- NULL);
+ LIBGNOMEUI_MODULE, argc, argv,
+ GNOME_PROGRAM_STANDARD_PROPERTIES,
+ GNOME_PARAM_POPT_TABLE, options,
+ NULL);
/* Splash screen */
gl_splash ();
#include "debug.h"
-#ifdef PACKAGE_DATA_DIR
-#define SPLASH_PIXMAP (PACKAGE_DATA_DIR "/pixmaps/glabels/glabels-logo.png")
-#else
-#define SPLASH_PIXMAP gnome_pixmap_file("glabels/glabels-logo.png")
-#endif
+#define SPLASH_PIXMAP gnome_program_locate_file (NULL,\
+ GNOME_FILE_DOMAIN_APP_PIXMAP,\
+ "glabels/glabels-logo.png",\
+ FALSE, NULL)
#define SPLASH_TIMEOUT 2000
#include "debug.h"
-#ifdef PACKAGE_DATA_DIR
-#define GL_DATA_DIR (PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "glabels")
-#else
-#define GL_DATA_DIR gnome_datadir_file("glabels")
-#endif
+#define GL_DATA_DIR gnome_program_locate_file (NULL,\
+ GNOME_FILE_DOMAIN_APP_DATADIR,\
+ "glabels",\
+ FALSE, NULL)
#define FULL_PAGE "Full-page"