[gnome-commander] tabs: properly set internal GnomeCmdFileSelector::list for newly created inactive tab
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] tabs: properly set internal GnomeCmdFileSelector::list for newly created inactive tab
- Date: Mon, 14 Jun 2010 04:41:23 +0000 (UTC)
commit f83252beb2af0c96c0fd98092a957a44b5c1284c
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jun 14 06:40:29 2010 +0200
tabs: properly set internal GnomeCmdFileSelector::list for newly created inactive tab
src/gnome-cmd-file-selector.cc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index b8473b9..4811efb 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1295,7 +1295,11 @@ gboolean GnomeCmdFileSelector::is_active()
GtkWidget *GnomeCmdFileSelector::new_tab(GnomeCmdDir *dir, gboolean activate)
{
// create the list
- list = new GnomeCmdFileList;
+ GnomeCmdFileList *list = new GnomeCmdFileList;
+
+ if (activate)
+ this->list = list; // ... update GnomeCmdFileSelector::list to point at newly created tab
+
list->update_style();
// hide dir column
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]