aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-17 06:10:34 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-17 06:10:34 +0800
commitc94e72f743ef680db93c62c44bc28c76a522bd9c (patch)
treec78ac2dceb543b6d989f96f693c861c5a612ec41 /libempathy-gtk/empathy-ui-utils.c
parentf81f32ba04373720879d9d2ec4f81386cafa3ce0 (diff)
downloadgsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.tar
gsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.tar.gz
gsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.tar.bz2
gsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.tar.lz
gsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.tar.xz
gsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.tar.zst
gsoc2013-empathy-c94e72f743ef680db93c62c44bc28c76a522bd9c.zip
Use empathy_file_lookup for glade files since some are in libempathy-gtk/ and others in src/
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@813 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 1b7a5ce2c..6aa800bb0 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -61,20 +61,12 @@ get_glade_file (const gchar *filename,
va_list args)
{
GladeXML *gui;
- gchar *path;
const char *name;
GtkWidget **widget_ptr;
- path = g_build_filename (g_getenv ("EMPATHY_SRCDIR"), "libempathy-gtk",
- filename, NULL);
- if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
- g_free (path);
- path = g_build_filename (DATADIR, "empathy", filename, NULL);
- }
- empathy_debug (DEBUG_DOMAIN, "Loading glade file %s", path);
+ empathy_debug (DEBUG_DOMAIN, "Loading glade file %s", filename);
- gui = glade_xml_new (path, root, domain);
- g_free (path);
+ gui = glade_xml_new (filename, root, domain);
if (!gui) {
g_warning ("Couldn't find necessary glade file '%s'", filename);