[evince] shell: Fix const warning



commit a93f216e3039660025039c12abd16e12c9df69ee
Author: Christian Persch <chpe gnome org>
Date:   Fri Jul 26 22:23:16 2013 +0200

    shell: Fix const warning

 shell/ev-utils.c |    2 +-
 shell/ev-utils.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-utils.c b/shell/ev-utils.c
index 52b63d6..a3cf0da 100644
--- a/shell/ev-utils.c
+++ b/shell/ev-utils.c
@@ -360,7 +360,7 @@ file_chooser_dialog_add_writable_pixbuf_formats (GtkFileChooser *chooser)
 }
 
 GdkPixbufFormat*
-get_gdk_pixbuf_format_by_extension (gchar *uri)
+get_gdk_pixbuf_format_by_extension (const gchar *uri)
 {
        GSList *pixbuf_formats = NULL;
        GSList *iter;
diff --git a/shell/ev-utils.h b/shell/ev-utils.h
index 81acc46..bcbe2fb 100644
--- a/shell/ev-utils.h
+++ b/shell/ev-utils.h
@@ -40,7 +40,7 @@ void                  ev_gui_menu_position_tree_selection (GtkMenu   *menu,
 gint                   get_num_monitors (GtkWindow * window);
 
 void                           file_chooser_dialog_add_writable_pixbuf_formats (GtkFileChooser *chooser);
-GdkPixbufFormat*       get_gdk_pixbuf_format_by_extension (gchar *uri);
+GdkPixbufFormat*       get_gdk_pixbuf_format_by_extension (const gchar *uri);
 
 G_END_DECLS
 


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