From 1b7c43adfa25eee678661e4d56dfa37888ff27c0 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Thu, 2 Feb 2012 14:54:58 +0100 Subject: panel: Convert to GResource origin commits: https://git.gnome.org/browse/gnome-panel/commit/?h=gnome-3-4&id=9fca67f https://git.gnome.org/browse/gnome-panel/commit/?h=gnome-3-4&id=695d30c https://git.gnome.org/browse/gnome-panel/patch/?id=00f9870cb28e6ef657d1 --- mate-panel/panel-run-dialog.c | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'mate-panel/panel-run-dialog.c') diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c index 7729c56b..bb7172c7 100644 --- a/mate-panel/panel-run-dialog.c +++ b/mate-panel/panel-run-dialog.c @@ -55,6 +55,7 @@ #include "panel-globals.h" #include "panel-enums.h" #include "panel-profile.h" +#include "panel-schemas.h" #include "panel-stock-icons.h" #include "panel-multiscreen.h" #include "menu.h" @@ -2011,7 +2012,6 @@ panel_run_dialog_present (GdkScreen *screen, guint32 activate_time) { GtkBuilder *gui; - GError *error; if (panel_lockdown_get_disable_command_line ()) return; @@ -2026,28 +2026,9 @@ panel_run_dialog_present (GdkScreen *screen, gui = gtk_builder_new (); gtk_builder_set_translation_domain (gui, GETTEXT_PACKAGE); - - error = NULL; - gtk_builder_add_from_file (gui, - BUILDERDIR "/panel-run-dialog.ui", - &error); - - if (error) { - char *secondary; - - secondary = g_strdup_printf (_("Unable to load file '%s': %s."), - BUILDERDIR"/panel-run-dialog.ui", - error->message); - panel_error_dialog (NULL, screen, "cannot_display_run_dialog", - TRUE, - _("Could not display run dialog"), - secondary); - g_free (secondary); - g_error_free (error); - g_object_unref (gui); - - return; - } + gtk_builder_add_from_resource (gui, + PANEL_RESOURCE_PATH "panel-run-dialog.ui", + NULL); static_dialog = panel_run_dialog_new (screen, gui, activate_time); -- cgit v1.2.1