diff options
Diffstat (limited to 'capplets/mouse/mate-mouse-properties.c')
-rw-r--r-- | capplets/mouse/mate-mouse-properties.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index d5fef831..fe8bad31 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -373,9 +373,10 @@ create_dialog (void) GError *error = NULL; dialog = gtk_builder_new (); - gtk_builder_add_from_file (dialog, MATECC_UI_DIR "/mate-mouse-properties.ui", &error); - if (error != NULL) { + if (gtk_builder_add_from_resource (dialog, "/org/mate/mcc/mouse/mate-mouse-properties.ui", &error) == 0) { g_warning ("Error loading UI file: %s", error->message); + g_error_free (error); + g_object_unref (dialog); return NULL; } |