forked from AuroraMiddleware/gtk
Merged from gtk-2-4:
2004-11-19 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-4: Fix #141077. Based on a patch by Christian Neumair <chris@gnome-de.org>: * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): Desensitize the "new folder" button. (edited_idle_cb): Sensitize the button back.
This commit is contained in:
parent
a006f66238
commit
e44612e7da
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
||||
Fix #141077. Based on a patch by Christian Neumair <chris@gnome-de.org>:
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
|
||||
Desensitize the "new folder" button.
|
||||
(edited_idle_cb): Sensitize the button back.
|
||||
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
@ -1,3 +1,13 @@
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
||||
Fix #141077. Based on a patch by Christian Neumair <chris@gnome-de.org>:
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
|
||||
Desensitize the "new folder" button.
|
||||
(edited_idle_cb): Sensitize the button back.
|
||||
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
@ -1,3 +1,13 @@
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
||||
Fix #141077. Based on a patch by Christian Neumair <chris@gnome-de.org>:
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
|
||||
Desensitize the "new folder" button.
|
||||
(edited_idle_cb): Sensitize the button back.
|
||||
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
@ -1,3 +1,13 @@
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
||||
Fix #141077. Based on a patch by Christian Neumair <chris@gnome-de.org>:
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (new_folder_button_clicked):
|
||||
Desensitize the "new folder" button.
|
||||
(edited_idle_cb): Sensitize the button back.
|
||||
|
||||
2004-11-19 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Merged from gtk-2-4:
|
||||
|
@ -1568,6 +1568,9 @@ new_folder_button_clicked (GtkButton *button,
|
||||
if (!impl->browse_files_model)
|
||||
return; /* FIXME: this sucks. Disable the New Folder button or something. */
|
||||
|
||||
/* Prevent button from being clicked twice */
|
||||
gtk_widget_set_sensitive (impl->browse_new_folder_button, FALSE);
|
||||
|
||||
_gtk_file_system_model_add_editable (impl->browse_files_model, &iter);
|
||||
|
||||
path = gtk_tree_model_get_path (GTK_TREE_MODEL (impl->browse_files_model), &iter);
|
||||
@ -1596,6 +1599,8 @@ edited_idle_cb (GtkFileChooserDefault *impl)
|
||||
_gtk_file_system_model_remove_editable (impl->browse_files_model);
|
||||
g_object_set (impl->list_name_renderer, "editable", FALSE, NULL);
|
||||
|
||||
gtk_widget_set_sensitive (impl->browse_new_folder_button, TRUE);
|
||||
|
||||
if (impl->edited_new_text) /* not cancelled? */
|
||||
{
|
||||
GError *error;
|
||||
|
Loading…
Reference in New Issue
Block a user