[Goodies-commits] r7463 - in xfce4-screenshooter/trunk: . lib

Jerome Guelfucci jeromeg at xfce.org
Sat Jun 6 09:47:33 CEST 2009


Author: jeromeg
Date: 2009-06-06 07:47:32 +0000 (Sat, 06 Jun 2009)
New Revision: 7463

Modified:
   xfce4-screenshooter/trunk/ChangeLog
   xfce4-screenshooter/trunk/NEWS
   xfce4-screenshooter/trunk/lib/screenshooter-capture.c
Log:
Sync the display instead of waiting one additionnal second.


Modified: xfce4-screenshooter/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter/trunk/ChangeLog	2009-06-05 20:07:16 UTC (rev 7462)
+++ xfce4-screenshooter/trunk/ChangeLog	2009-06-06 07:47:32 UTC (rev 7463)
@@ -1,3 +1,7 @@
+2009-06-06 jeromeg
+
+Sync the display instead of waiting one additionnal second.
+
 2009-06-05 jeromeg
 
 Reimplement an old workaround to fix screenshots without delay.

Modified: xfce4-screenshooter/trunk/NEWS
===================================================================
--- xfce4-screenshooter/trunk/NEWS	2009-06-05 20:07:16 UTC (rev 7462)
+++ xfce4-screenshooter/trunk/NEWS	2009-06-06 07:47:32 UTC (rev 7463)
@@ -1,12 +1,15 @@
 === Version x.x.x ===
 
   Gtk+ 2.12 and Glib 2.16 are now required to build the application
-  and the panel plugin.
+  and the panel plugin. Xml-rpc and libcurl are now optionnal dependencies,
+  they should be replaced by libsoup in the future.
 
   * Bugs fixed:
     - The cursor was missplaced when taking a screenshot of a window (Bug #5204).
 
   * Enhancements:
+    - Add an optional action to host screenshots on ZimageZ, a free online image
+      hosting solution.
     - Add an option in the user interface to hide the mouse pointer on screenshots.
     - Add an option in the application which allows the user to choose
       whether the application should be closed after taking a screenshot. This
@@ -18,6 +21,7 @@
       keyboard key to cancel the operation.
     - Screenshots can now be saved to remote locations that are connected using
       gvfs-connect or Gigolo.
+    - Updated translations for the application and the documentation.
 
 === Version 1.5.1 ===
 

Modified: xfce4-screenshooter/trunk/lib/screenshooter-capture.c
===================================================================
--- xfce4-screenshooter/trunk/lib/screenshooter-capture.c	2009-06-05 20:07:16 UTC (rev 7462)
+++ xfce4-screenshooter/trunk/lib/screenshooter-capture.c	2009-06-06 07:47:32 UTC (rev 7463)
@@ -447,6 +447,7 @@
   GdkPixbuf *screenshot = NULL;
   GdkWindow *window = NULL;
   GdkScreen *screen;
+  GdkDisplay *display;
 
   /* gdk_get_default_root_window () does not need to be unrefed,
    * needs_unref enables us to unref *window only if a non default
@@ -456,11 +457,15 @@
   /* Get the screen on which the screenshot should be taken */
   screen = gdk_screen_get_default ();
 
+  /* Sync the display */
+  display = gdk_display_get_default ();
+  gdk_display_sync (display);
+
   /* wait for n=delay seconds */
   /* WORKAROUND: always sleep at least 1 second so that
    * the dialog has the time to disappear. */
   if (region != SELECT)
-    (delay > 0 ) ? sleep (delay): sleep (delay + 1);
+    sleep (delay);
 
   /* Get the window/desktop we want to screenshot*/
   if (region == FULLSCREEN)




More information about the Goodies-commits mailing list