diff options
author | Vincent Untz <[email protected]> | 2012-02-02 14:54:58 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-04-26 13:01:37 +0200 |
commit | 1b7c43adfa25eee678661e4d56dfa37888ff27c0 (patch) | |
tree | 0da6e30fd46ec17040d7aec92bc24040983eb8ac /mate-panel/panel-run-dialog.c | |
parent | ee07e90d14c15dbf45899d6c70614fe2068cd640 (diff) | |
download | mate-panel-1b7c43adfa25eee678661e4d56dfa37888ff27c0.tar.bz2 mate-panel-1b7c43adfa25eee678661e4d56dfa37888ff27c0.tar.xz |
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
Diffstat (limited to 'mate-panel/panel-run-dialog.c')
-rw-r--r-- | mate-panel/panel-run-dialog.c | 27 |
1 files changed, 4 insertions, 23 deletions
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); |