summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-04 19:17:38 +0100
committerStefano Karapetsas <[email protected]>2014-02-04 19:17:38 +0100
commit6158850ddd979e9e4327b3dcfc39534859ca2f28 (patch)
treed908690fed41c83c2486a691799529c0c8a3e9e7
parentba57f07ff71ba93ef7c4a04fd14e4d9749245da8 (diff)
downloadmate-desktop-6158850ddd979e9e4327b3dcfc39534859ca2f28.tar.bz2
mate-desktop-6158850ddd979e9e4327b3dcfc39534859ca2f28.tar.xz
Fix mate_gdk_spawn_command_line_on_screen
-rw-r--r--libmate-desktop/mate-desktop-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmate-desktop/mate-desktop-utils.c b/libmate-desktop/mate-desktop-utils.c
index 0a41700..c6ae6c4 100644
--- a/libmate-desktop/mate-desktop-utils.c
+++ b/libmate-desktop/mate-desktop-utils.c
@@ -193,7 +193,7 @@ mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command,
appinfo = g_app_info_create_from_commandline (command, NULL, G_APP_INFO_CREATE_NONE, error);
- if (!error) {
+ if (&error != NULL) {
context = gdk_app_launch_context_new ();
gdk_app_launch_context_set_screen (context, screen);
g_app_info_launch (appinfo, NULL, G_APP_LAUNCH_CONTEXT (context), error);
@@ -203,7 +203,7 @@ mate_gdk_spawn_command_line_on_screen (GdkScreen *screen, const gchar *command,
if (appinfo != NULL)
g_object_unref (appinfo);
- if (!error)
+ if (&error != NULL)
return TRUE;
else
return FALSE;