Change the GLADEDIR define to RESOURCEDIR
authorDana Jansens <danakj@orodu.net>
Sun, 8 Sep 2013 16:18:55 +0000 (12:18 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 8 Sep 2013 16:18:55 +0000 (12:18 -0400)
And point the variable at the right directory so it can find
the .ui file.

Makefile.am
src/main.c

index 61c3805..950486f 100644 (file)
@@ -23,7 +23,7 @@ src_obconf_CPPFLAGS = \
        $(XML_CFLAGS) \
        -DLOCALEDIR=\"$(localedir)\" \
        -DPIXMAPDIR=\"$(pixmapdir)\" \
-       -DGLADEDIR=\"$(gladedir)\" \
+       -DRESOURCEDIR=\"$(resourcedir)\" \
        -DTHEMEDIR=\"$(themedir)\" \
        -DG_LOG_DOMAIN=\"Obconf\"
 src_obconf_LDADD = \
index ff11ef9..2cbbbd6 100644 (file)
@@ -218,7 +218,7 @@ int main(int argc, char **argv)
         return 0;
     }
 
-    p = g_build_filename(GLADEDIR, "obconf.ui", NULL);
+    p = g_build_filename(RESOURCEDIR, "obconf.ui", NULL);
     builder = gtk_builder_new();
     gtk_builder_add_from_file(builder, p, &error);
     g_free(p);