[gtk+/multiroot-filechooser: 20/30] const GSList doesn't make sense



commit bad39dda2093cc7e74d12aaaf23d8261a7274b53
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Jun 24 17:42:38 2010 -0500

    const GSList doesn't make sense
    
    Except to annoy us non-C++ programmers :)
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 gtk/gtkfilechooserentry.c |    4 ++--
 gtk/gtkfilechooserentry.h |    2 +-
 gtk/gtkpathbar.c          |    6 +++---
 gtk/gtkpathbar.h          |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index c4415a7..9380f08 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -72,7 +72,7 @@ struct _GtkFileChooserEntry
   GtkFileChooserAction action;
 
   GtkFileSystem *file_system;
-  const GSList *root_uris;
+  GSList *root_uris;
   GFile *base_folder;
   GFile *current_folder_file;
   gchar *file_part;
@@ -2025,7 +2025,7 @@ _gtk_file_chooser_entry_get_local_only (GtkFileChooserEntry *chooser_entry)
 
 void
 _gtk_file_chooser_entry_set_root_uris (GtkFileChooserEntry *chooser_entry,
-                                       const GSList        *root_uris)
+                                       GSList        *root_uris)
 {
   /* This doesn't need its own copy. */
   chooser_entry->root_uris = root_uris;
diff --git a/gtk/gtkfilechooserentry.h b/gtk/gtkfilechooserentry.h
index 480759f..3fb34ac 100644
--- a/gtk/gtkfilechooserentry.h
+++ b/gtk/gtkfilechooserentry.h
@@ -52,7 +52,7 @@ void               _gtk_file_chooser_entry_set_local_only     (GtkFileChooserEnt
                                                                gboolean             local_only);
 gboolean           _gtk_file_chooser_entry_get_local_only     (GtkFileChooserEntry *chooser_entry);
 void               _gtk_file_chooser_entry_set_root_uris    (GtkFileChooserEntry *chooser_entry,
-                                                             const GSList        *root_uris);
+                                                             GSList        *root_uris);
 
 G_END_DECLS
 
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index f02cd2a..9801280 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1483,7 +1483,7 @@ static ButtonType
 find_button_type (GtkPathBar  *path_bar,
 		  GFile       *file)
 {
-  const GSList *l;
+  GSList *l;
 
   if (path_bar->root_file != NULL &&
       g_file_equal (file, path_bar->root_file))
@@ -1885,8 +1885,8 @@ _gtk_path_bar_set_file_system (GtkPathBar    *path_bar,
 }
 
 void
-_gtk_path_bar_set_root_uris   (GtkPathBar         *path_bar,
-                               const GSList       *root_uris)
+_gtk_path_bar_set_root_uris   (GtkPathBar   *path_bar,
+                               GSList       *root_uris)
 {
   g_return_if_fail (GTK_IS_PATH_BAR (path_bar));
 
diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h
index b27ceec..efe1f46 100644
--- a/gtk/gtkpathbar.h
+++ b/gtk/gtkpathbar.h
@@ -45,7 +45,7 @@ struct _GtkPathBar
   GFile *home_file;
   GFile *desktop_file;
 
-  const GSList *root_uris;
+  GSList *root_uris;
 
   GCancellable *get_info_cancellable;
 
@@ -91,7 +91,7 @@ gboolean _gtk_path_bar_set_file        (GtkPathBar         *path_bar,
 					gboolean            keep_trail,
 					GError            **error);
 void     _gtk_path_bar_set_root_uris   (GtkPathBar         *path_bar,
-										const GSList       *root_uris);
+					GSList             *root_uris);
 void     _gtk_path_bar_up              (GtkPathBar *path_bar);
 void     _gtk_path_bar_down            (GtkPathBar *path_bar);
 



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