+2004-03-15 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
+ modes, set the Name entry of the file chooser if we get a
+ nonexistent filename from the file entry. Fixes #135911.
+ (gtk_file_chooser_default_set_current_name): Oops, this should
+ also work if we are in CREATE_FOLDER mode.
+
+ * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
+ gtk_file_path_copy().
+
+ * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
+ path that we got from the model.
+ (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
+ hard-coded constant.
+
Mon Mar 15 13:50:14 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
+2004-03-15 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
+ modes, set the Name entry of the file chooser if we get a
+ nonexistent filename from the file entry. Fixes #135911.
+ (gtk_file_chooser_default_set_current_name): Oops, this should
+ also work if we are in CREATE_FOLDER mode.
+
+ * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
+ gtk_file_path_copy().
+
+ * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
+ path that we got from the model.
+ (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
+ hard-coded constant.
+
Mon Mar 15 13:50:14 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
+2004-03-15 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
+ modes, set the Name entry of the file chooser if we get a
+ nonexistent filename from the file entry. Fixes #135911.
+ (gtk_file_chooser_default_set_current_name): Oops, this should
+ also work if we are in CREATE_FOLDER mode.
+
+ * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
+ gtk_file_path_copy().
+
+ * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
+ path that we got from the model.
+ (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
+ hard-coded constant.
+
Mon Mar 15 13:50:14 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
+2004-03-15 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
+ modes, set the Name entry of the file chooser if we get a
+ nonexistent filename from the file entry. Fixes #135911.
+ (gtk_file_chooser_default_set_current_name): Oops, this should
+ also work if we are in CREATE_FOLDER mode.
+
+ * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
+ gtk_file_path_copy().
+
+ * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
+ path that we got from the model.
+ (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
+ hard-coded constant.
+
Mon Mar 15 13:50:14 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
+2004-03-15 Federico Mena Quintero <federico@ximian.com>
+
+ * gtk/gtkfilechooserdefault.c (update_from_entry): In the Save
+ modes, set the Name entry of the file chooser if we get a
+ nonexistent filename from the file entry. Fixes #135911.
+ (gtk_file_chooser_default_set_current_name): Oops, this should
+ also work if we are in CREATE_FOLDER mode.
+
+ * gtk/gtkfilesystem.c (gtk_file_path_real_copy): Use
+ gtk_file_path_copy().
+
+ * gtk/gtkfilechooserentry.c (check_completion_callback): Free the
+ path that we got from the model.
+ (completion_match_func): Use DISPLAY_NAME_COLUMN rather than a
+ hard-coded constant.
+
Mon Mar 15 13:50:14 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
{
GtkFileChooserDefault *impl = GTK_FILE_CHOOSER_DEFAULT (chooser);
- g_return_if_fail (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE);
+ g_return_if_fail (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE
+ || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER);
gtk_entry_set_text (GTK_ENTRY (impl->save_file_name_entry), name);
}
if (!info)
{
-#if 0
- if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE)
- return;
-#endif
- error_getting_info_dialog (impl, subfolder_path, error);
+ if (impl->action == GTK_FILE_CHOOSER_ACTION_SAVE
+ || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
+ {
+ if (!change_folder_and_display_error (impl, folder_path))
+ goto out;
+
+ gtk_file_chooser_default_set_current_name (GTK_FILE_CHOOSER (impl), file_part);
+ }
+ else
+ error_getting_info_dialog (impl, subfolder_path, error);
+
goto out;
}
if (chooser_entry->no_pop_down)
return FALSE;
- gtk_tree_model_get (GTK_TREE_MODEL (chooser_entry->completion_store), iter, 0, &name, -1);
+ gtk_tree_model_get (GTK_TREE_MODEL (chooser_entry->completion_store), iter, DISPLAY_NAME_COLUMN, &name, -1);
if (!name)
{
return FALSE; /* Uninitialized row, ugh */
}
g_free (display_name);
+ gtk_file_path_free (path);
valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (chooser_entry->completion_store),
&iter);
}
static gpointer
gtk_file_path_real_copy (gpointer boxed)
{
- return gtk_file_path_new_dup (gtk_file_path_get_string ((GtkFilePath *) boxed));
+ return gtk_file_path_copy ((GtkFilePath *) boxed);
}
static void