[gnome-control-center/gsoc2011/location] Add the missing UI file



commit 621503cb849f1b684c7ea416a79f0a9a897ca8e2
Author: StÃphane Maniaci <stephane maniaci gmail com>
Date:   Wed Jul 13 18:00:53 2011 +0200

    Add the missing UI file

 panels/location/Makefile.am         |    1 +
 panels/location/cc-location-panel.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/location/Makefile.am b/panels/location/Makefile.am
index ff2dc08..652de50 100644
--- a/panels/location/Makefile.am
+++ b/panels/location/Makefile.am
@@ -21,6 +21,7 @@ liblocation_la_LDFLAGS = $(PANEL_LDFLAGS)
 
 uidir = $(pkgdatadir)/ui/location
 dist_ui_DATA = \
+	add-location.ui \
 	location.ui \
 	data/bg.png
 
diff --git a/panels/location/cc-location-panel.c b/panels/location/cc-location-panel.c
index 76090f6..50fd092 100644
--- a/panels/location/cc-location-panel.c
+++ b/panels/location/cc-location-panel.c
@@ -63,7 +63,7 @@ _on_add_location (GtkToolButton   *bt,
   CcLocationPanelPrivate *priv = self->priv;
   GError *e = NULL;
 
-  gtk_builder_add_from_file (self->priv->builder, "add-location.ui", &e);
+  gtk_builder_add_from_file (self->priv->builder, GNOMECC_UI_DIR "/add-location.ui", &e);
   g_assert_no_error (e);
 
   GtkWidget *dialog = WID ("add-location-dialog");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]