gnome-commander r1734 - in branches/gcmd-1-3: . doc/C src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1734 - in branches/gcmd-1-3: . doc/C src
- Date: Mon, 28 Apr 2008 23:41:55 +0100 (BST)
Author: epiotr
Date: Mon Apr 28 22:41:54 2008
New Revision: 1734
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1734&view=rev
Log:
Fixed problem #499761 (search window cleared when column sorted)
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/doc/C/gnome-commander.xml
branches/gcmd-1-3/src/gnome-cmd-file-list.cc
Modified: branches/gcmd-1-3/doc/C/gnome-commander.xml
==============================================================================
--- branches/gcmd-1-3/doc/C/gnome-commander.xml (original)
+++ branches/gcmd-1-3/doc/C/gnome-commander.xml Mon Apr 28 22:41:54 2008
@@ -5862,6 +5862,9 @@
</itemizedlist>
</listitem>
<listitem>
+ <para>Fixed problem #499761 (search window cleared when column sorted)</para>
+ </listitem>
+ <listitem>
<para>Fixed problem #499764 (multiple selection problem)</para>
</listitem>
<listitem>
Modified: branches/gcmd-1-3/src/gnome-cmd-file-list.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.cc Mon Apr 28 22:41:54 2008
@@ -1237,9 +1237,6 @@
static void init (GnomeCmdFileList *fl)
{
- gint i;
- gboolean b;
-
fl->priv = g_new0 (GnomeCmdFileListPrivate, 1);
fl->priv->shown_files = gnome_cmd_file_collection_new ();
// fl->priv->selected_files = NULL;
@@ -1250,17 +1247,20 @@
// fl->priv->quicksearch_popup = NULL;
// fl->priv->focus_later = NULL;
- for (i=0; i<FILE_LIST_NUM_COLUMNS; i++)
- fl->priv->sort_raising[i] = FALSE;
+ // for (gint i=0; i<FILE_LIST_NUM_COLUMNS; i++)
+ // fl->priv->sort_raising[i] = FALSE;
+
+ gint col = FILE_LIST_COLUMN_NAME; // defaults,
+ gboolean b = FILE_LIST_SORT_ASCENDING; // used when not set by gnome_cmd_data_get_sort_params()
- gnome_cmd_data_get_sort_params (fl, &i, &b);
- fl->priv->current_col = i;
- fl->priv->sort_raising[i] = b;
- fl->priv->sort_func = file_list_column[i].sort_func;
+ gnome_cmd_data_get_sort_params (fl, &col, &b);
+ fl->priv->current_col = col;
+ fl->priv->sort_raising[col] = b;
+ fl->priv->sort_func = file_list_column[col].sort_func;
init_dnd (fl);
- for (i=0; i<FILE_LIST_NUM_COLUMNS; i++)
+ for (gint i=0; i<FILE_LIST_NUM_COLUMNS; i++)
gtk_clist_set_column_resizeable (GTK_CLIST (fl), i, TRUE);
gtk_signal_connect_after (GTK_OBJECT (fl), "scroll_vertical", GTK_SIGNAL_FUNC (on_scroll_vertical), fl);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]