[gnome-commander] Disable file selector earlier during dir change
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander] Disable file selector earlier during dir change
- Date: Wed, 15 Jul 2009 17:37:12 +0000 (UTC)
commit e6a7ae1d2ee269e05be2540f78ca249c907c21a7
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Jul 15 19:29:42 2009 +0200
Disable file selector earlier during dir change
src/gnome-cmd-file-selector.cc | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index b961434..34ec046 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1373,6 +1373,12 @@ void GnomeCmdFileSelector::set_directory(GnomeCmdDir *dir)
if (file_list()->cwd == dir)
return;
+ if (priv->realized)
+ {
+ gtk_widget_set_sensitive (GTK_WIDGET (this), FALSE);
+ set_cursor_busy_for_widget (GTK_WIDGET (this));
+ }
+
gnome_cmd_dir_ref (dir);
if (file_list()->lwd && file_list()->lwd != dir)
@@ -1389,12 +1395,6 @@ void GnomeCmdFileSelector::set_directory(GnomeCmdDir *dir)
file_list()->cwd = dir;
- if (priv->realized)
- {
- gtk_widget_set_sensitive (GTK_WIDGET (this), FALSE);
- set_cursor_busy_for_widget (GTK_WIDGET (this));
- }
-
g_signal_connect (dir, "list-ok", G_CALLBACK (on_dir_list_ok), this);
g_signal_connect (dir, "list-failed", G_CALLBACK (on_dir_list_failed), this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]