[Xfce4-commits] <xfce4-screenshooter:master> Simplify screenshooter_save_screenshot.

Jérôme Guelfucci noreply at xfce.org
Thu Oct 15 11:58:03 CEST 2009


Updating branch refs/heads/master
         to 3a51fa166605bf39199924a2072ec3739bc1b396 (commit)
       from 9b5719784a44d80d2e5c2d720c7fa58cf13a81bc (commit)

commit 3a51fa166605bf39199924a2072ec3739bc1b396
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Oct 15 11:05:36 2009 +0200

    Simplify screenshooter_save_screenshot.

 lib/screenshooter-dialogs.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index 288fd1c..dd67397 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -1114,14 +1114,8 @@ gchar
                                 const gchar *title,
                                 gboolean horodate)
 {
-  gchar *filename = generate_filename_for_uri (directory, title, horodate);
-  gchar *savename = NULL;
-  gchar *save_uri = g_build_filename (directory, filename, NULL);
+  const gchar *filename = generate_filename_for_uri (directory, title, horodate);
+  const gchar *save_uri = g_build_filename (directory, filename, NULL);
 
-  savename = save_screenshot_to (screenshot, save_uri);
-
-  g_free (save_uri);
-  g_free (filename);
-
-  return savename;
+  return save_screenshot_to (screenshot, save_uri);
 }



More information about the Xfce4-commits mailing list