summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlos@imendio.com>2008-08-04 14:43:05 +0000
committerCarlos Garnacho <carlosg@src.gnome.org>2008-08-04 14:43:05 +0000
commit02c65db5c09de3ff82529cf94d2b7351aa93e446 (patch)
tree2035350e28e2ebd77a558214f9e2d0f89b76ee90 /gtk/gtkfilechooserbutton.c
parentaa435e024aa7c766252f659f2cba8753d1e09e80 (diff)
downloadgtk+-02c65db5c09de3ff82529cf94d2b7351aa93e446.tar.gz
Make GFile-oriented API public. Fixes #545978.
2008-08-04 Carlos Garnacho <carlos@imendio.com> * gtk/gtk.symbols: * gtk/gtkfilechooser.[ch]: Make GFile-oriented API public. Fixes #545978. * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkfilechooserutils.c: Update to use public GFile API. svn path=/trunk/; revision=20971
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r--gtk/gtkfilechooserbutton.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 1967d4989f..4c9904f92a 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -1020,8 +1020,8 @@ dnd_select_folder_get_info_cb (GCancellable *cancellable,
data->selected =
(((data->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER && is_folder) ||
(data->action == GTK_FILE_CHOOSER_ACTION_OPEN && !is_folder)) &&
- _gtk_file_chooser_select_file (GTK_FILE_CHOOSER (data->button->priv->dialog),
- data->file, NULL));
+ gtk_file_chooser_select_file (GTK_FILE_CHOOSER (data->button->priv->dialog),
+ data->file, NULL));
}
else
data->selected = FALSE;
@@ -1109,8 +1109,8 @@ gtk_file_chooser_button_drag_data_received (GtkWidget *widget,
case TEXT_PLAIN:
text = (char*) gtk_selection_data_get_text (data);
file = g_file_new_for_uri (text);
- _gtk_file_chooser_select_file (GTK_FILE_CHOOSER (priv->dialog), file,
- NULL);
+ gtk_file_chooser_select_file (GTK_FILE_CHOOSER (priv->dialog), file,
+ NULL);
g_object_unref (file);
g_free (text);
break;
@@ -2185,7 +2185,7 @@ update_combo_box (GtkFileChooserButton *button)
gtk_tree_model_get_iter_first (priv->filter_model, &iter);
- files = _gtk_file_chooser_get_files (GTK_FILE_CHOOSER (priv->dialog));
+ files = gtk_file_chooser_get_files (GTK_FILE_CHOOSER (priv->dialog));
row_found = FALSE;
@@ -2312,7 +2312,7 @@ update_label_and_image (GtkFileChooserButton *button)
gchar *label_text;
GSList *files;
- files = _gtk_file_chooser_get_files (GTK_FILE_CHOOSER (priv->dialog));
+ files = gtk_file_chooser_get_files (GTK_FILE_CHOOSER (priv->dialog));
label_text = NULL;
pixbuf = NULL;
@@ -2483,7 +2483,7 @@ open_dialog (GtkFileChooserButton *button)
priv->dialog_file_activated_id);
g_signal_handler_block (priv->dialog,
priv->dialog_selection_changed_id);
- files = _gtk_file_chooser_get_files (GTK_FILE_CHOOSER (priv->dialog));
+ files = gtk_file_chooser_get_files (GTK_FILE_CHOOSER (priv->dialog));
if (files)
{
if (files->data)
@@ -2530,8 +2530,8 @@ combo_box_changed_cb (GtkComboBox *combo_box,
case ROW_TYPE_CURRENT_FOLDER:
gtk_file_chooser_unselect_all (GTK_FILE_CHOOSER (priv->dialog));
if (data)
- _gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (priv->dialog),
- data, NULL);
+ gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (priv->dialog),
+ data, NULL);
break;
case ROW_TYPE_VOLUME:
{
@@ -2541,8 +2541,8 @@ combo_box_changed_cb (GtkComboBox *combo_box,
base_file = _gtk_file_system_volume_get_root (data);
if (base_file)
{
- _gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (priv->dialog),
- base_file, NULL);
+ gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (priv->dialog),
+ base_file, NULL);
g_object_unref (base_file);
}
}
@@ -2674,12 +2674,12 @@ dialog_response_cb (GtkDialog *dialog,
switch (gtk_file_chooser_get_action (GTK_FILE_CHOOSER (dialog)))
{
case GTK_FILE_CHOOSER_ACTION_OPEN:
- _gtk_file_chooser_select_file (GTK_FILE_CHOOSER (dialog), priv->old_file,
- NULL);
+ gtk_file_chooser_select_file (GTK_FILE_CHOOSER (dialog), priv->old_file,
+ NULL);
break;
case GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER:
- _gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (dialog),
- priv->old_file, NULL);
+ gtk_file_chooser_set_current_folder_file (GTK_FILE_CHOOSER (dialog),
+ priv->old_file, NULL);
break;
default:
g_assert_not_reached ();