gnome-commander r1660 - in trunk: . doc/C src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1660 - in trunk: . doc/C src
- Date: Wed, 26 Mar 2008 16:40:47 +0000 (GMT)
Author: epiotr
Date: Wed Mar 26 16:40:47 2008
New Revision: 1660
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1660&view=rev
Log:
Code cleanup
Modified:
trunk/NEWS
trunk/doc/C/gnome-commander.xml
trunk/src/gnome-cmd-file-list.cc
trunk/src/gnome-cmd-search-dialog.cc
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Wed Mar 26 16:40:47 2008
@@ -3,7 +3,7 @@
---------------
Bug fixes:
- * Fixed problem #... (...)
+ * Fixed problem #392959 (dynamically changing user to root)
* Fixed problem with sorting of UTF-8 encoded file names
New features:
Modified: trunk/doc/C/gnome-commander.xml
==============================================================================
--- trunk/doc/C/gnome-commander.xml (original)
+++ trunk/doc/C/gnome-commander.xml Wed Mar 26 16:40:47 2008
@@ -5818,7 +5818,7 @@
<para>
<itemizedlist>
<listitem>
- <para>Fixed problem #... (...)</para>
+ <para>Fixed problem #392959 (dynamically changing user to root)</para>
</listitem>
<listitem>
<para>Fixed problem with sorting of UTF-8 encoded file names</para>
Modified: trunk/src/gnome-cmd-file-list.cc
==============================================================================
--- trunk/src/gnome-cmd-file-list.cc (original)
+++ trunk/src/gnome-cmd-file-list.cc Wed Mar 26 16:40:47 2008
@@ -86,7 +86,7 @@
GnomeCmdFileListColumn file_list_column[FILE_LIST_NUM_COLUMNS] =
-{{FILE_LIST_COLUMN_ICON,"",16,GTK_JUSTIFY_CENTER,FILE_LIST_SORT_ASCENDING,NULL},
+{{FILE_LIST_COLUMN_ICON,"",16,GTK_JUSTIFY_CENTER,FILE_LIST_SORT_ASCENDING, NULL},
{FILE_LIST_COLUMN_NAME, N_("name"), 140, GTK_JUSTIFY_LEFT, FILE_LIST_SORT_ASCENDING, (GCompareDataFunc) sort_by_name},
{FILE_LIST_COLUMN_EXT, N_("ext"), 40, GTK_JUSTIFY_LEFT, FILE_LIST_SORT_ASCENDING, (GCompareDataFunc) sort_by_ext},
{FILE_LIST_COLUMN_DIR, N_("dir"), 240, GTK_JUSTIFY_LEFT, FILE_LIST_SORT_ASCENDING, (GCompareDataFunc) sort_by_dir},
Modified: trunk/src/gnome-cmd-search-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.cc (original)
+++ trunk/src/gnome-cmd-search-dialog.cc Wed Mar 26 16:40:47 2008
@@ -20,6 +20,7 @@
#include <config.h>
#include <sys/types.h>
#include <regex.h>
+
#include "gnome-cmd-includes.h"
#include "gnome-cmd-search-dialog.h"
#include "gnome-cmd-dir.h"
@@ -54,12 +55,12 @@
regex_t *content_regex;
gboolean content_search; // should we do content search?
gint matches; // the number of matching files
- gint context_id; // the context id of the statusbar
+ gint context_id; // the context id of the status bar
GnomeCmdSearchDialog *dialog;
gboolean recurse; // should we recurse or just search in the selected directory?
gboolean case_sens;
- GList *match_dirs; // The directories which we found matching files in
- GnomeCmdDir *start_dir; // The directory to start searching from
+ GList *match_dirs; // the directories which we found matching files in
+ GnomeCmdDir *start_dir; // the directory to start searching from
GThread *thread;
ProtectedData pdata;
gint update_gui_timeout_id;
@@ -229,7 +230,7 @@
}
- // If the stopbutton was pressed let's abort here
+ // If the stop button was pressed let's abort here
if (data->stopped)
return;
@@ -248,7 +249,7 @@
{
GnomeCmdFile *finfo = (GnomeCmdFile *) tmp->data;
- // If the stopbutton was pressed let's abort here
+ // If the stop button was pressed let's abort here
if (data->stopped)
return;
@@ -269,7 +270,7 @@
gnome_cmd_dir_unref (new_dir);
}
- // If the stopbutton was pressed let's abort here
+ // If the stop button was pressed let's abort here
if (data->stopped)
return;
}
@@ -355,10 +356,10 @@
data->pdata.files = NULL;
}
- // Update statusbar with the latest message
+ // Update status bar with the latest message
set_statusmsg (data, data->pdata.msg);
- // Update the progressbar
+ // Update the progress bar
progress_bar_update (data->dialog->priv->pbar, PBAR_MAX);
g_mutex_unlock (data->pdata.mutex);
@@ -541,7 +542,7 @@
*/
static void on_help (GtkButton *button, GnomeCmdSearchDialog *dialog)
{
- gnome_cmd_help_display("gnome-commander.xml", "gnome-commander-search");
+ gnome_cmd_help_display ("gnome-commander.xml", "gnome-commander-search");
}
@@ -764,7 +765,7 @@
dialog->priv->help_button = gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_HELP, GTK_SIGNAL_FUNC (on_help), dialog);
dialog->priv->close_button = gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_CLOSE, GTK_SIGNAL_FUNC (on_close), dialog);
- dialog->priv->goto_button = gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), _("Goto"), GTK_SIGNAL_FUNC (on_goto), dialog);
+ dialog->priv->goto_button = gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), _("_Goto"), GTK_SIGNAL_FUNC (on_goto), dialog);
dialog->priv->stop_button = gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_STOP, GTK_SIGNAL_FUNC (on_stop), dialog);
dialog->priv->search_button = gnome_cmd_dialog_add_button (GNOME_CMD_DIALOG (dialog), GTK_STOCK_FIND, GTK_SIGNAL_FUNC (on_search), dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]