[frogr] Make frogr_util_get_corrected_pixbuf() a private helper function



commit e1163ed78cc13cbf6194a6ea4d3fd344a7cf3d55
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Sat Nov 3 13:44:30 2012 +0100

    Make frogr_util_get_corrected_pixbuf() a private helper function

 src/frogr-util.c |    8 ++++----
 src/frogr-util.h |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/frogr-util.c b/src/frogr-util.c
index 0cf857c..d05b7ba 100644
--- a/src/frogr-util.c
+++ b/src/frogr-util.c
@@ -263,8 +263,8 @@ frogr_util_show_error_dialog (GtkWindow *parent, const gchar *message)
   _show_message_dialog (parent, message, GTK_MESSAGE_ERROR);
 }
 
-GdkPixbuf *
-frogr_util_get_corrected_pixbuf (GdkPixbuf *pixbuf, gint max_width, gint max_height)
+static GdkPixbuf *
+_get_corrected_pixbuf (GdkPixbuf *pixbuf, gint max_width, gint max_height)
 {
   GdkPixbuf *scaled_pixbuf = NULL;
   GdkPixbuf *rotated_pixbuf;
@@ -493,7 +493,7 @@ frogr_util_get_pixbuf_for_video_file (GFile *file, gint max_width, gint max_heig
   if (pixbuf)
     {
       GdkPixbuf *c_pixbuf = NULL;
-      c_pixbuf = frogr_util_get_corrected_pixbuf (pixbuf, max_width, max_height);
+      c_pixbuf = _get_corrected_pixbuf (pixbuf, max_width, max_height);
       g_object_unref (pixbuf);
       pixbuf = c_pixbuf;
     }
@@ -510,7 +510,7 @@ frogr_util_get_pixbuf_from_image_contents (const guchar *contents, gsize length,
   if (pixbuf)
     {
       GdkPixbuf *c_pixbuf = NULL;
-      c_pixbuf = frogr_util_get_corrected_pixbuf (pixbuf, max_width, max_height);
+      c_pixbuf = _get_corrected_pixbuf (pixbuf, max_width, max_height);
       g_object_unref (pixbuf);
       pixbuf = c_pixbuf;
     }
diff --git a/src/frogr-util.h b/src/frogr-util.h
index 1d68f8d..32b7ba4 100644
--- a/src/frogr-util.h
+++ b/src/frogr-util.h
@@ -41,8 +41,6 @@ void frogr_util_show_warning_dialog (GtkWindow *parent, const gchar *message);
 
 void frogr_util_show_error_dialog (GtkWindow *parent, const gchar *message);
 
-GdkPixbuf *frogr_util_get_corrected_pixbuf (GdkPixbuf *pixbuf, gint max_width, gint max_height);
-
 GdkPixbuf *frogr_util_get_pixbuf_for_video_file (GFile *file, gint max_width, gint max_height, GError **error);
 
 GdkPixbuf *frogr_util_get_pixbuf_from_image_contents (const guchar *contents, gsize length, gint max_width, gint max_height, GError **error);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]