diff options
author | William Jon McCann <jmccann@redhat.com> | 2010-01-11 11:49:05 -0500 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2010-01-11 11:49:05 -0500 |
commit | 9074de36c813a0640061252e5684c08efd3241f3 (patch) | |
tree | 8e26c92071bc4ce66e5f3566f61d19b3a76c279d | |
parent | 040ad988e3f2316aabb58805ea547f0b221eaf48 (diff) | |
download | gnome-control-center-9074de36c813a0640061252e5684c08efd3241f3.tar.gz |
[shell] Install menu and ui files
-rw-r--r-- | shell/Makefile.am | 15 | ||||
-rw-r--r-- | shell/control-center.c | 4 |
2 files changed, 12 insertions, 7 deletions
diff --git a/shell/Makefile.am b/shell/Makefile.am index e8b44a110..11fbeec6c 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -13,6 +13,12 @@ INCLUDES = \ noinst_PROGRAMS = gnome-control-center +menudir = $(sysconfdir)/xdg/menus +menu_DATA = gnomecc.menu + +uidir = $(pkgdatadir) +ui_DATA = shell.ui + gnome_control_center_SOURCES = \ control-center.c @@ -21,7 +27,9 @@ gnome_control_center_LDADD = \ $(REAL_LIBSLAB_LIBS) AM_CPPFLAGS = \ - -DGNOMELOCALEDIR="\"$(datadir)/locale\"" + -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \ + -DUIDIR="\"$(uidir)\"" \ + -DMENUDIR="\"$(menudir)\"" sysdir = $(datadir)/applications sys_in_files = gnomecc.desktop.in @@ -46,10 +54,7 @@ if GCONF_SCHEMAS_INSTALL fi endif -menudir = $(sysconfdir)/xdg/menus -menu_DATA = gnomecc.menu - -EXTRA_DIST = shell.ui gnomecc.desktop.in.in gnomecc.directory.in gnomecc.menu $(schemas_DATA).in +EXTRA_DIST = $(ui_DATA) gnomecc.desktop.in.in gnomecc.directory.in gnomecc.menu $(schemas_DATA).in DISTCLEANFILES = gnomecc.desktop gnomecc.desktop.in gnomecc.directory $(schemas_DATA) diff --git a/shell/control-center.c b/shell/control-center.c index aaa02f0cb..8a9105184 100644 --- a/shell/control-center.c +++ b/shell/control-center.c @@ -92,7 +92,7 @@ fill_model (GtkBuilder *b) vbox = W (b, "main-vbox"); - t = gmenu_tree_lookup ("/etc/xdg/menus/gnomecc.menu", 0); + t = gmenu_tree_lookup (MENUDIR "/gnomecc.menu", 0); d = gmenu_tree_get_root_directory (t); @@ -273,7 +273,7 @@ main (int argc, char **argv) b = gtk_builder_new (); - ret = gtk_builder_add_from_file (b, "shell.ui", NULL); + ret = gtk_builder_add_from_file (b, UIDIR "/shell.ui", NULL); if (ret == 0) { g_error ("Unable to load UI"); |