Commit 21b79f30 authored by Bastien Nocera's avatar Bastien Nocera

user-accounts: Fix uninstalled files location

Uninstalled .ui files aren't in ../data/ anymore, but in data/
parent 3be95176
......@@ -440,7 +440,7 @@ um_account_dialog_new (void)
filename = UIDIR "/account-dialog.ui";
if (!g_file_test (filename, G_FILE_TEST_EXISTS))
filename = "../data/account-dialog.ui";
filename = "data/account-dialog.ui";
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
......
......@@ -576,7 +576,7 @@ enroll_fingerprints (GtkWindow *parent,
dialog = gtk_builder_new ();
filename = UIDIR "/account-fingerprint.ui";
if (!g_file_test (filename, G_FILE_TEST_EXISTS))
filename = "../data/account-fingerprint.ui";
filename = "data/account-fingerprint.ui";
if (!gtk_builder_add_from_file (dialog, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
......
......@@ -330,7 +330,7 @@ um_language_chooser_new (void)
builder = gtk_builder_new ();
filename = UIDIR "/language-chooser.ui";
if (!g_file_test (filename, G_FILE_TEST_EXISTS))
filename = "../data/language-chooser.ui";
filename = "data/language-chooser.ui";
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_warning ("failed to load language chooser: %s", error->message);
g_error_free (error);
......
......@@ -620,7 +620,7 @@ um_password_dialog_new (void)
error = NULL;
filename = UIDIR "/password-dialog.ui";
if (!g_file_test (filename, G_FILE_TEST_EXISTS))
filename = "../data/password-dialog.ui";
filename = "data/password-dialog.ui";
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
......
......@@ -1215,7 +1215,7 @@ um_user_panel_init (UmUserPanel *self)
filename = UIDIR "/user-accounts-dialog.ui";
if (!g_file_test (filename, G_FILE_TEST_EXISTS)) {
filename = "../data/user-accounts-dialog.ui";
filename = "data/user-accounts-dialog.ui";
}
error = NULL;
if (!gtk_builder_add_from_file (d->builder, filename, &error)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment