[gnome-control-center/extensible-shell] Allow loading the UI from the source dir
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center/extensible-shell] Allow loading the UI from the source dir
- Date: Tue, 19 Jan 2010 14:00:16 +0000 (UTC)
commit 2d8c22d766be864713b2fcf7a8009cfce340ad9e
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jan 19 13:57:39 2010 +0000
Allow loading the UI from the source dir
shell/control-center.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/shell/control-center.c b/shell/control-center.c
index c686e1f..12eb086 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -444,7 +444,9 @@ main (int argc, char **argv)
ret = gtk_builder_add_from_file (data->builder, UIDIR "/shell.ui", NULL);
if (ret == 0)
{
- g_error ("Unable to load UI");
+ ret = gtk_builder_add_from_file (data->builder, "shell.ui", NULL);
+ if (ret == 0)
+ g_error ("Unable to load UI");
}
data->window = W (data->builder, "main-window");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]