Updating branch refs/heads/master to a0bfec50373444222652ae00deeac39c12ce3d6f (commit) from 2845efd09f75b1d96b765d84b0657f0221f2b6db (commit)
commit a0bfec50373444222652ae00deeac39c12ce3d6f Author: Nick Schermer <n...@xfce.org> Date: Thu Jan 28 19:19:36 2010 +0100 Use an error dialog here. Bit less information in the dialog, but the error returned from gtk_builder_add_from_string() will give the user more information about the actually problem. settings/main.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/settings/main.c b/settings/main.c index 71eb929..a81b71e 100644 --- a/settings/main.c +++ b/settings/main.c @@ -108,13 +108,12 @@ main(int argc, gtk_builder_add_from_string(builder, xfce4_session_settings_ui, xfce4_session_settings_ui_length, - NULL); + &error); if(!builder) { - xfce_message_dialog(NULL, _("Internal Error"), GTK_STOCK_DIALOG_ERROR, - _("Unable to create user interface from embedded definition data"), - _("This is likely a problem with your Xfce installation"), - GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT, NULL); + xfce_dialog_show_error(NULL, error, + _("Unable to create user interface from embedded definition data")); + g_error_free (error); return EXIT_FAILURE; } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits