[Goodies-commits] r6636 - in xfce4-screenshooter/trunk: . src

Jerome Guelfucci jeromeg at xfce.org
Tue Feb 3 20:56:08 CET 2009


Author: jeromeg
Date: 2009-02-03 19:56:08 +0000 (Tue, 03 Feb 2009)
New Revision: 6636

Modified:
   xfce4-screenshooter/trunk/ChangeLog
   xfce4-screenshooter/trunk/src/main.c
Log:
Try to fix build without gio.

Modified: xfce4-screenshooter/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter/trunk/ChangeLog	2009-02-03 18:16:24 UTC (rev 6635)
+++ xfce4-screenshooter/trunk/ChangeLog	2009-02-03 19:56:08 UTC (rev 6636)
@@ -1,3 +1,7 @@
+2009-02-03 jeromeg
+
+  * src/main.c: try to fix build without GIO.
+
 2009-02-01 jeromeg
 
   * src/main.c:

Modified: xfce4-screenshooter/trunk/src/main.c
===================================================================
--- xfce4-screenshooter/trunk/src/main.c	2009-02-03 18:16:24 UTC (rev 6635)
+++ xfce4-screenshooter/trunk/src/main.c	2009-02-03 19:56:08 UTC (rev 6636)
@@ -32,7 +32,9 @@
 gboolean fullscreen = FALSE;
 gboolean no_save_dialog = FALSE;
 gchar *screenshot_dir;
+#ifdef HAVE_GIO
 gchar *application;
+#endif
 gint delay = 0;
 
 
@@ -70,10 +72,12 @@
         N_("Directory where the screenshot will be saved"),
         NULL
     },
+    #ifdef HAVE_GIO
     {   "open", 'o', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, &application,
         N_("Application to open the screenshot"),
         NULL
     },
+    #endif
     { NULL, ' ', 0, 0, NULL, NULL, NULL }
 };
 
@@ -228,6 +232,7 @@
 
       sd->delay = delay;
 
+      #ifdef HAVE_GIO
       if (application != NULL)
         {
           sd->app = application;
@@ -238,6 +243,7 @@
           sd->app = g_strdup ("none");
           sd->action = SAVE;
         }
+      #endif
 
       /* If the user gave a directory name, verify that it is valid */
       if (screenshot_dir != NULL)




More information about the Goodies-commits mailing list