summaryrefslogtreecommitdiff
path: root/mate-panel/panel-run-dialog.c
diff options
context:
space:
mode:
authoryetist <[email protected]>2015-06-19 22:00:00 +0800
committerinfirit <[email protected]>2015-08-26 14:44:57 +0200
commitc5d35e84d1b2b8c3df8406fdaf4c35b605792421 (patch)
treedb0b6ec585eaa8f86429d0f2e677095b94101d49 /mate-panel/panel-run-dialog.c
parent630cb2c0ca309f077fe3f92be0032c1e102efd06 (diff)
downloadmate-panel-c5d35e84d1b2b8c3df8406fdaf4c35b605792421.tar.bz2
mate-panel-c5d35e84d1b2b8c3df8406fdaf4c35b605792421.tar.xz
Gtk3: fixed build warning
Diffstat (limited to 'mate-panel/panel-run-dialog.c')
-rw-r--r--mate-panel/panel-run-dialog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index 9da6ce03..ce246e5e 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -362,7 +362,9 @@ panel_run_dialog_launch_command (PanelRunDialog *dialog,
const char *command,
const char *locale_command)
{
+#if !GTK_CHECK_VERSION (3, 0, 0)
GdkScreen *screen;
+#endif
gboolean result;
GError *error = NULL;
char **argv;
@@ -372,8 +374,6 @@ panel_run_dialog_launch_command (PanelRunDialog *dialog,
if (!command_is_executable (locale_command, &argc, &argv))
return FALSE;
- screen = gtk_window_get_screen (GTK_WINDOW (dialog->run_dialog));
-
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->terminal_checkbox)))
mate_desktop_prepend_terminal_to_vector (&argc, &argv);
@@ -387,6 +387,8 @@ panel_run_dialog_launch_command (PanelRunDialog *dialog,
&pid,
&error);
#else
+ screen = gtk_window_get_screen (GTK_WINDOW (dialog->run_dialog));
+
result = gdk_spawn_on_screen (screen,
NULL, /* working directory */
argv,