[gnome-commander] GnomeCmdMainWin: use GnomeCmdFileList* in update_drop_con_button() instead of prevoius GnomeCmdFileS
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdMainWin: use GnomeCmdFileList* in update_drop_con_button() instead of prevoius GnomeCmdFileS
- Date: Sun, 1 Aug 2010 13:49:17 +0000 (UTC)
commit 91c679372a9739e8e0c53be566c968a63fbd35ea
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Aug 1 15:48:31 2010 +0200
GnomeCmdMainWin: use GnomeCmdFileList* in update_drop_con_button() instead of prevoius GnomeCmdFileSelector*
src/gnome-cmd-main-win.cc | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 1e28d52..0266b00 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -571,15 +571,17 @@ inline void update_browse_buttons (GnomeCmdMainWin *mw, GnomeCmdFileSelector *fs
}
-static void update_drop_con_button (GnomeCmdMainWin *mw, GnomeCmdFileSelector *fs)
+static void update_drop_con_button (GnomeCmdMainWin *mw, GnomeCmdFileList *fl)
{
g_return_if_fail (GNOME_CMD_IS_MAIN_WIN (mw));
- g_return_if_fail (GNOME_CMD_IS_FILE_SELECTOR (fs));
+
+ if (!fl)
+ return;
GnomeCmdPixmap *pm = NULL;
static GtkWidget *prev_pixmap = NULL;
- GnomeCmdCon *con = fs->get_connection();
+ GnomeCmdCon *con = fl->con;
if (!con)
return;
@@ -636,7 +638,7 @@ static void update_drop_con_button (GnomeCmdMainWin *mw, GnomeCmdFileSelector *f
static void on_fs_dir_change (GnomeCmdFileSelector *fs, const gchar dir, GnomeCmdMainWin *mw)
{
update_browse_buttons (mw, fs);
- update_drop_con_button (mw, fs);
+ update_drop_con_button (mw, fs->file_list());
}
@@ -1155,7 +1157,7 @@ static void gnome_cmd_main_win_real_switch_fs (GnomeCmdMainWin *mw, GnomeCmdFile
mw->fs(INACTIVE)->set_active(FALSE);
update_browse_buttons (mw, fs);
- update_drop_con_button (mw, fs);
+ update_drop_con_button (mw, fs->file_list());
}
@@ -1215,7 +1217,7 @@ void GnomeCmdMainWin::update_toolbar_visibility()
priv->toolbar_sep = NULL;
}
- update_drop_con_button (this, fs(ACTIVE));
+ update_drop_con_button (this, fs(ACTIVE)->file_list());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]