[gnome-commander] Fixed problem #642178 (lock tabs for prev/next buttons)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fixed problem #642178 (lock tabs for prev/next buttons)
- Date: Mon, 14 Feb 2011 20:53:12 +0000 (UTC)
commit fbea2b6fcf40f9176b5b3b412be5dd2db239024f
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Feb 14 21:52:35 2011 +0100
Fixed problem #642178 (lock tabs for prev/next buttons)
src/gnome-cmd-file-selector.cc | 44 ++++++++++++++++++++++++++++++++++++---
1 files changed, 40 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 092d3be..7ceb127 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -865,7 +865,16 @@ void GnomeCmdFileSelector::first()
return;
priv->dir_history->lock();
- goto_directory(priv->dir_history->first());
+
+ if (list->locked)
+ {
+ GnomeCmdCon *con = get_connection();
+
+ new_tab(gnome_cmd_dir_new (con, gnome_cmd_con_create_path (con, priv->dir_history->first())));
+ }
+ else
+ goto_directory(priv->dir_history->first());
+
priv->dir_history->unlock();
}
@@ -876,7 +885,16 @@ void GnomeCmdFileSelector::back()
return;
priv->dir_history->lock();
- goto_directory(priv->dir_history->back());
+
+ if (list->locked)
+ {
+ GnomeCmdCon *con = get_connection();
+
+ new_tab(gnome_cmd_dir_new (con, gnome_cmd_con_create_path (con, priv->dir_history->back())));
+ }
+ else
+ goto_directory(priv->dir_history->back());
+
priv->dir_history->unlock();
}
@@ -887,7 +905,16 @@ void GnomeCmdFileSelector::forward()
return;
priv->dir_history->lock();
- goto_directory(priv->dir_history->forward());
+
+ if (list->locked)
+ {
+ GnomeCmdCon *con = get_connection();
+
+ new_tab(gnome_cmd_dir_new (con, gnome_cmd_con_create_path (con, priv->dir_history->forward())));
+ }
+ else
+ goto_directory(priv->dir_history->forward());
+
priv->dir_history->unlock();
}
@@ -898,7 +925,16 @@ void GnomeCmdFileSelector::last()
return;
priv->dir_history->lock();
- goto_directory(priv->dir_history->last());
+
+ if (list->locked)
+ {
+ GnomeCmdCon *con = get_connection();
+
+ new_tab(gnome_cmd_dir_new (con, gnome_cmd_con_create_path (con, priv->dir_history->last())));
+ }
+ else
+ goto_directory(priv->dir_history->last());
+
priv->dir_history->unlock();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]