Construct glade file pathname at run-time.

2005-12-18  Tor Lillqvist  <tml@novell.com>

	* e-timezone-dialog/e-timezone-dialog.c
	(e_timezone_dialog_construct): Construct glade file pathname at
	run-time.

svn path=/trunk/; revision=30860
This commit is contained in:
Tor Lillqvist
2005-12-18 08:38:44 +00:00
committed by Tor Lillqvist
parent ee8ca653e1
commit 35ab6ff7ff
2 changed files with 13 additions and 1 deletions

View File

@ -2,6 +2,10 @@
* e-timezone-dialog/Makefile.am: Link with libeutil.
* e-timezone-dialog/e-timezone-dialog.c
(e_timezone_dialog_construct): Construct glade file pathname at
run-time.
2005-12-12 Irene Huang <Irene.Huang@sun.com>
reviewed by: Veerapuram Varadhan <vvaradhan@novell.com>

View File

@ -32,6 +32,8 @@
#include <glade/glade.h>
#include <misc/e-map.h>
#include "e-util/e-util-private.h"
#include "e-timezone-dialog.h"
#define E_TIMEZONE_DIALOG_MAP_POINT_NORMAL_RGBA 0xc070a0ff
@ -224,6 +226,7 @@ e_timezone_dialog_construct (ETimezoneDialog *etd)
{
ETimezoneDialogPrivate *priv;
GtkWidget *map;
gchar *filename;
g_return_val_if_fail (etd != NULL, NULL);
g_return_val_if_fail (E_IS_TIMEZONE_DIALOG (etd), NULL);
@ -232,7 +235,12 @@ e_timezone_dialog_construct (ETimezoneDialog *etd)
/* Load the content widgets */
priv->xml = glade_xml_new (EVOLUTION_GLADEDIR "/e-timezone-dialog.glade", NULL, NULL);
filename = g_build_filename (EVOLUTION_GLADEDIR,
"e-timezone-dialog.glade",
NULL);
priv->xml = glade_xml_new (filename, NULL, NULL);
g_free (filename);
if (!priv->xml) {
g_message ("e_timezone_dialog_construct(): Could not load the Glade XML file!");
goto error;