[gnome-commander] GnomeCmdFileSelector: do not use default arguments in new_tab()



commit e6fa621aaaf72ebdb64c8692beffaae9db221593
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Dec 29 15:49:23 2010 +0100

    GnomeCmdFileSelector: do not use default arguments in new_tab()

 src/gnome-cmd-file-selector.h |    2 +-
 src/gnome-cmd-main-win.cc     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.h b/src/gnome-cmd-file-selector.h
index c735d2a..9c86cfc 100644
--- a/src/gnome-cmd-file-selector.h
+++ b/src/gnome-cmd-file-selector.h
@@ -86,7 +86,7 @@ struct GnomeCmdFileSelector
 
     GtkWidget *new_tab();
     GtkWidget *new_tab(GnomeCmdDir *dir, gboolean activate=TRUE);
-    GtkWidget *new_tab(GnomeCmdDir *dir, GnomeCmdFileList::ColumnID sort_col, GtkSortType sort_order, gboolean activate=TRUE);
+    GtkWidget *new_tab(GnomeCmdDir *dir, GnomeCmdFileList::ColumnID sort_col, GtkSortType sort_order, gboolean activate);
     void close_tab()                        {  if (notebook->size()>1)  notebook->remove_page();   }
     void close_tab(gint n)                  {  if (notebook->size()>1)  notebook->remove_page(n);  }
 
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 7c46d16..660d925 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -813,7 +813,7 @@ static void init (GnomeCmdMainWin *mw)
     for (vector<GnomeCmdData::Tab>::const_iterator i=gnome_cmd_data.tabs[LEFT].begin(); i!=gnome_cmd_data.tabs[LEFT].end(); ++i)
     {
         GnomeCmdDir *dir = gnome_cmd_dir_new (home, gnome_cmd_con_create_path (home, i->first.c_str()));
-        mw->fs(LEFT)->new_tab(dir, i->second, i->third);
+        mw->fs(LEFT)->new_tab(dir, i->second, i->third, TRUE);
     }
 
     if (gnome_cmd_data.tabs[RIGHT].empty())
@@ -822,7 +822,7 @@ static void init (GnomeCmdMainWin *mw)
     for (vector<GnomeCmdData::Tab>::const_iterator i=gnome_cmd_data.tabs[RIGHT].begin(); i!=gnome_cmd_data.tabs[RIGHT].end(); ++i)
     {
         GnomeCmdDir *dir = gnome_cmd_dir_new (home, gnome_cmd_con_create_path (home, i->first.c_str()));
-        mw->fs(RIGHT)->new_tab(dir, i->second, i->third);
+        mw->fs(RIGHT)->new_tab(dir, i->second, i->third, TRUE);
     }
 
     g_signal_connect (mw, "size-allocate", G_CALLBACK (on_size_allocate), mw);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]