[gtk+/wip/csoriano/pathbar_rework: 1/3] gtkpathbar: make functions public



commit d35663e69100d82103e7bc55c040fb16a5cb8f50
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Mar 2 16:26:32 2015 +0100

    gtkpathbar: make functions public

 gtk/gtkfilechooserwidget.c |   12 ++++++------
 gtk/gtkpathbar.c           |   14 +++++++-------
 gtk/gtkpathbar.h           |   17 +++++++++--------
 3 files changed, 22 insertions(+), 21 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 2bdd78d..5f1505f 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2419,7 +2419,7 @@ put_recent_folder_in_pathbar (GtkFileChooserWidget *impl, GtkTreeIter *iter)
   gtk_tree_model_get (GTK_TREE_MODEL (priv->recent_model), iter,
                      MODEL_COL_FILE, &file,
                      -1);
-  _gtk_path_bar_set_file (GTK_PATH_BAR (priv->browse_path_bar), file, FALSE);
+  gtk_path_bar_set_file (GTK_PATH_BAR (priv->browse_path_bar), file, FALSE);
   g_object_unref (file);
 }
 
@@ -4508,7 +4508,7 @@ update_current_folder_get_info_cb (GCancellable *cancellable,
   if (! _gtk_file_info_consider_as_directory (info))
     goto out;
 
-  _gtk_path_bar_set_file (GTK_PATH_BAR (priv->browse_path_bar), data->file, data->keep_trail);
+  gtk_path_bar_set_file (GTK_PATH_BAR (priv->browse_path_bar), data->file, data->keep_trail);
 
   if (priv->current_folder != data->file)
     {
@@ -7006,7 +7006,7 @@ up_folder_handler (GtkFileChooserWidget *impl)
 {
   GtkFileChooserWidgetPrivate *priv = impl->priv;
 
-  _gtk_path_bar_up (GTK_PATH_BAR (priv->browse_path_bar));
+  gtk_path_bar_up (GTK_PATH_BAR (priv->browse_path_bar));
 }
 
 /* Handler for the "down-folder" keybinding signal */
@@ -7015,7 +7015,7 @@ down_folder_handler (GtkFileChooserWidget *impl)
 {
   GtkFileChooserWidgetPrivate *priv = impl->priv;
 
-  _gtk_path_bar_down (GTK_PATH_BAR (priv->browse_path_bar));
+  gtk_path_bar_down (GTK_PATH_BAR (priv->browse_path_bar));
 }
 
 /* Handler for the "home-folder" keybinding signal */
@@ -7578,9 +7578,9 @@ post_process_ui (GtkFileChooserWidget *impl)
   g_list_free (cells);
 
   /* Set the GtkPathBar file system backend */
-  _gtk_path_bar_set_file_system (GTK_PATH_BAR (impl->priv->browse_path_bar), impl->priv->file_system);
+  gtk_path_bar_set_file_system (GTK_PATH_BAR (impl->priv->browse_path_bar), impl->priv->file_system);
   file = g_file_new_for_path ("/");
-  _gtk_path_bar_set_file (GTK_PATH_BAR (impl->priv->browse_path_bar), file, FALSE);
+  gtk_path_bar_set_file (GTK_PATH_BAR (impl->priv->browse_path_bar), file, FALSE);
   g_object_unref (file);
 
   /* Set the fixed size icon renderer, this requires
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 740cf2f..ff60f9b 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1849,9 +1849,9 @@ gtk_path_bar_get_info_callback (GCancellable *cancellable,
 }
 
 void
-_gtk_path_bar_set_file (GtkPathBar *path_bar,
-                        GFile      *file,
-                        gboolean    keep_trail)
+gtk_path_bar_set_file (GtkPathBar *path_bar,
+                       GFile      *file,
+                       gboolean    keep_trail)
 {
   struct SetFileInfo *info;
 
@@ -1884,8 +1884,8 @@ _gtk_path_bar_set_file (GtkPathBar *path_bar,
 
 /* FIXME: This should be a construct-only property */
 void
-_gtk_path_bar_set_file_system (GtkPathBar    *path_bar,
-                              GtkFileSystem *file_system)
+gtk_path_bar_set_file_system (GtkPathBar    *path_bar,
+                              GtkFileSystem *file_system)
 {
   const char *home;
 
@@ -1926,7 +1926,7 @@ _gtk_path_bar_set_file_system (GtkPathBar    *path_bar,
  * root direction), act as if the user clicked on the next button up.
  **/
 void
-_gtk_path_bar_up (GtkPathBar *path_bar)
+gtk_path_bar_up (GtkPathBar *path_bar)
 {
   GList *l;
 
@@ -1953,7 +1953,7 @@ _gtk_path_bar_up (GtkPathBar *path_bar)
  * leaf direction), act as if the user clicked on the next button down.
  **/
 void
-_gtk_path_bar_down (GtkPathBar *path_bar)
+gtk_path_bar_down (GtkPathBar *path_bar)
 {
   GList *l;
 
diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h
index 7fdd7b3..74470d4 100644
--- a/gtk/gtkpathbar.h
+++ b/gtk/gtkpathbar.h
@@ -53,14 +53,15 @@ struct _GtkPathBarClass
 };
 
 GDK_AVAILABLE_IN_ALL
-GType    gtk_path_bar_get_type (void) G_GNUC_CONST;
-void     _gtk_path_bar_set_file_system (GtkPathBar         *path_bar,
-                                       GtkFileSystem      *file_system);
-void     _gtk_path_bar_set_file        (GtkPathBar         *path_bar,
-                                       GFile              *file,
-                                       gboolean            keep_trail);
-void     _gtk_path_bar_up              (GtkPathBar *path_bar);
-void     _gtk_path_bar_down            (GtkPathBar *path_bar);
+GType         gtk_path_bar_get_type                     (void) G_GNUC_CONST;
+
+void          gtk_path_bar_set_file_system              (GtkPathBar         *path_bar,
+                                                         GtkFileSystem     *file_system);
+void          gtk_path_bar_set_file                     (GtkPathBar         *path,
+                                                         GFile              *file,
+                                                         gboolean            keep_trail);
+void          gtk_path_bar_up                           (GtkPathBar         *path_bar);
+void          gtk_path_bar_down                         (GtkPathBar         *path_bar);
 
 G_END_DECLS
 


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