summaryrefslogtreecommitdiff
path: root/capplets/about-me/mate-about-me.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/about-me/mate-about-me.c')
-rw-r--r--capplets/about-me/mate-about-me.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/capplets/about-me/mate-about-me.c b/capplets/about-me/mate-about-me.c
index b66beb32..417dac3c 100644
--- a/capplets/about-me/mate-about-me.c
+++ b/capplets/about-me/mate-about-me.c
@@ -125,7 +125,7 @@ static void
about_me_update_photo (MateAboutMe *me)
{
gchar *file;
- GError *error;
+ GError *error = NULL;
guchar *data;
gsize length;
@@ -428,6 +428,7 @@ about_me_setup_dialog (void)
GtkWidget *main_dialog;
GtkIconInfo *icon;
GtkBuilder *dialog;
+ GError *error = NULL;
gchar *str;
#if HAVE_ACCOUNTSSERVICE
ActUserManager* manager;
@@ -437,7 +438,11 @@ about_me_setup_dialog (void)
me->image = NULL;
dialog = gtk_builder_new ();
- gtk_builder_add_from_file (dialog, MATECC_UI_DIR "/mate-about-me-dialog.ui", NULL);
+ if (gtk_builder_add_from_resource (dialog, "/org/mate/mcc/am/mate-about-me-dialog.ui", &error) == 0)
+ {
+ g_warning ("Could not parse UI definition: %s", error->message);
+ g_error_free (error);
+ }
me->image_chooser = e_image_chooser_new_with_size (MAX_WIDTH, MAX_HEIGHT);
gtk_container_add (GTK_CONTAINER (WID ("button-image")), me->image_chooser);