[gdl] Fixed some const warnings



commit 912ae12cba69bb153c671b6dec5f19f57764b5a1
Author: Johannes Schmid <jhs gnome org>
Date:   Mon Feb 20 21:48:10 2012 +0100

    Fixed some const warnings

 gdl/gdl-switcher.c |    8 ++++----
 gdl/gdl-switcher.h |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gdl/gdl-switcher.c b/gdl/gdl-switcher.c
index fa8900e..961cf57 100644
--- a/gdl/gdl-switcher.c
+++ b/gdl/gdl-switcher.c
@@ -50,7 +50,7 @@ static void gdl_switcher_add_button  (GdlSwitcher *switcher,
                                       const gchar *label,
                                       const gchar *tooltips,
                                       const gchar *stock_id,
-                                      const GdkPixbuf *pixbuf_icon,
+                                      GdkPixbuf *pixbuf_icon,
                                       gint switcher_id,
                                       GtkWidget *page);
 /* static void gdl_switcher_remove_button (GdlSwitcher *switcher, gint switcher_id); */
@@ -844,10 +844,10 @@ gdl_switcher_new (void)
  * The text label for the button is specified using the @label parameter.  If 
  * it is %NUll then a default incrementally numbered label is used instead.
  */
-void
+static void
 gdl_switcher_add_button (GdlSwitcher *switcher, const gchar *label,
                          const gchar *tooltips, const gchar *stock_id,
-			 const GdkPixbuf *pixbuf_icon,
+			 GdkPixbuf *pixbuf_icon,
                          gint switcher_id, GtkWidget* page)
 {
     GtkWidget *event_box;
@@ -972,7 +972,7 @@ gint
 gdl_switcher_insert_page (GdlSwitcher *switcher, GtkWidget *page,
                           GtkWidget *tab_widget, const gchar *label,
                           const gchar *tooltips, const gchar *stock_id,
-                          const GdkPixbuf *pixbuf_icon, gint position)
+                          GdkPixbuf *pixbuf_icon, gint position)
 {
     gint ret_position;
     gint switcher_id;
diff --git a/gdl/gdl-switcher.h b/gdl/gdl-switcher.h
index 89d8d54..017216e 100644
--- a/gdl/gdl-switcher.h
+++ b/gdl/gdl-switcher.h
@@ -63,7 +63,7 @@ gint       gdl_switcher_insert_page  (GdlSwitcher *switcher,
                                       const gchar *label,
                                       const gchar *tooltips,
                                       const gchar *stock_id,
-                                      const GdkPixbuf *pixbuf_icon,
+                                      GdkPixbuf *pixbuf_icon,
                                       gint position);
 G_END_DECLS
 



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