gnome-commander r2051 - in trunk: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2051 - in trunk: . src
- Date: Fri, 5 Sep 2008 17:22:17 +0000 (UTC)
Author: epiotr
Date: Fri Sep 5 17:22:17 2008
New Revision: 2051
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2051&view=rev
Log:
Code cleanup
Modified:
trunk/NEWS
trunk/src/gnome-cmd-data.cc
trunk/src/gnome-cmd-data.h
trunk/src/gnome-cmd-file-list.cc
trunk/src/gnome-cmd-file-selector.cc
trunk/src/gnome-cmd-file.h
trunk/src/gnome-cmd-search-dialog.cc
trunk/src/gnome-cmd-xfer.cc
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Fri Sep 5 17:22:17 2008
@@ -249,7 +249,7 @@
* Fixed update after renaming without FAM
New features:
- * New GNOME commander logo
+ * New GNOME Commander logo
* Added internal F3 viewer
* Copying selected filename(s) to clipboard
* Inserting selected file full path to the cmdline when pressing CTRL+SHIFT+ENTER
Modified: trunk/src/gnome-cmd-data.cc
==============================================================================
--- trunk/src/gnome-cmd-data.cc (original)
+++ trunk/src/gnome-cmd-data.cc Fri Sep 5 17:22:17 2008
@@ -66,7 +66,6 @@
gint list_row_height;
gchar *list_font;
GnomeCmdRightMouseButtonMode right_mouse_button_mode;
- gboolean show_toolbar;
guint icon_size;
guint dev_icon_size;
GdkInterpType icon_scale_quality;
@@ -1201,7 +1200,6 @@
gnome_cmd_data_set_int ("/options/ext_disp_mode", data->priv->ext_disp_mode);
gnome_cmd_data_set_int ("/options/right_mouse_button_mode", data->priv->right_mouse_button_mode);
- gnome_cmd_data_set_bool ("/options/show_toolbar", data->priv->show_toolbar);
gnome_cmd_data_set_int ("/options/icon_size", data->priv->icon_size);
gnome_cmd_data_set_int ("/options/dev_icon_size", data->priv->dev_icon_size);
gnome_cmd_data_set_int ("/options/icon_scale_quality", data->priv->icon_scale_quality);
@@ -1423,7 +1421,6 @@
data->priv->ext_disp_mode = (GnomeCmdExtDispMode) gnome_cmd_data_get_int ("/options/ext_disp_mode", GNOME_CMD_EXT_DISP_BOTH);
data->priv->right_mouse_button_mode = (GnomeCmdRightMouseButtonMode) gnome_cmd_data_get_int ("/options/right_mouse_button_mode", RIGHT_BUTTON_POPUPS_MENU);
- data->priv->show_toolbar = gnome_cmd_data_get_bool ("/options/show_toolbar", TRUE);
data->priv->icon_size = gnome_cmd_data_get_int ("/options/icon_size", 16);
data->priv->dev_icon_size = gnome_cmd_data_get_int ("/options/dev_icon_size", 16);
data->priv->icon_scale_quality = (GdkInterpType) gnome_cmd_data_get_int ("/options/icon_scale_quality", GDK_INTERP_HYPER);
@@ -2029,19 +2026,6 @@
}
-void gnome_cmd_data_set_show_toolbar (gboolean value)
-{
- data->priv->show_toolbar = value;
-}
-
-
-gboolean
-gnome_cmd_data_get_show_toolbar (void)
-{
- return data->priv->show_toolbar;
-}
-
-
guint gnome_cmd_data_get_icon_size (void)
{
return data->priv->icon_size;
Modified: trunk/src/gnome-cmd-data.h
==============================================================================
--- trunk/src/gnome-cmd-data.h (original)
+++ trunk/src/gnome-cmd-data.h Fri Sep 5 17:22:17 2008
@@ -167,9 +167,6 @@
gboolean gnome_cmd_data_get_use_gcmd_block (void);
-gboolean gnome_cmd_data_get_show_toolbar (void);
-void gnome_cmd_data_set_show_toolbar (gboolean value);
-
guint gnome_cmd_data_get_icon_size (void);
void gnome_cmd_data_set_icon_size (guint size);
Modified: trunk/src/gnome-cmd-file-list.cc
==============================================================================
--- trunk/src/gnome-cmd-file-list.cc (original)
+++ trunk/src/gnome-cmd-file-list.cc Fri Sep 5 17:22:17 2008
@@ -58,8 +58,8 @@
enum
{
FILE_CLICKED, // A file in the list was clicked
- LIST_CLICKED, // The file-list widget was clicked
- EMPTY_SPACE_CLICKED, // The file-list was clicked but not on a file
+ LIST_CLICKED, // The file list widget was clicked
+ EMPTY_SPACE_CLICKED, // The file list was clicked but not on a file
SELECTION_CHANGED, // At least on file was selected/unselected
LAST_SIGNAL
};
@@ -1810,7 +1810,7 @@
for (GList *list = priv->visible_files.sort(priv->sort_func, this); list; list = list->next)
add_file_to_clist (this, GNOME_CMD_FILE (list->data), -1);
- // refocus the previously selected file if this file-list has the focus
+ // refocus the previously selected file if this file list has the focus
if (selfile && GTK_WIDGET_HAS_FOCUS (this))
{
gint selrow = get_row_from_file (this, selfile);
Modified: trunk/src/gnome-cmd-file-selector.cc
==============================================================================
--- trunk/src/gnome-cmd-file-selector.cc (original)
+++ trunk/src/gnome-cmd-file-selector.cc Fri Sep 5 17:22:17 2008
@@ -909,7 +909,7 @@
if (file_is_in_list (fs, f))
{
- gnome_cmd_file_invalidate_metadata (f);
+ gnome_cmd_file_invalidate_metadata (f); // FIXME: should be hadled in GnomeCmdDir, not here
gnome_cmd_file_list_update_file (fs->file_list(), f);
update_selected_files_label (fs);
}
@@ -924,7 +924,7 @@
if (file_is_in_list (fs, f))
{
- // gnome_cmd_file_invalidate_metadata (f, TAG_FILE);
+ // gnome_cmd_file_invalidate_metadata (f, TAG_FILE); // FIXME: should be hadled in GnomeCmdDir, not here
gnome_cmd_file_list_update_file (fs->file_list(), f);
GnomeCmdFileList::ColumnID sort_col = GNOME_CMD_FILE_LIST (fs->file_list())->get_sort_column();
Modified: trunk/src/gnome-cmd-file.h
==============================================================================
--- trunk/src/gnome-cmd-file.h (original)
+++ trunk/src/gnome-cmd-file.h Fri Sep 5 17:22:17 2008
@@ -119,7 +119,7 @@
void gnome_cmd_file_show_cap_copy (GnomeCmdFile *f);
void gnome_cmd_file_show_cap_paste (GnomeCmdFile *f);
-//FIXME: These names suck when we have a class called GnomeCmdFileList...
+// FIXME: These names suck when we have a class called GnomeCmdFileList...
GList *gnome_cmd_file_list_copy (GList *files);
void gnome_cmd_file_list_free (GList *files);
void gnome_cmd_file_list_ref (GList *files);
Modified: trunk/src/gnome-cmd-search-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.cc (original)
+++ trunk/src/gnome-cmd-search-dialog.cc Fri Sep 5 17:22:17 2008
@@ -62,8 +62,8 @@
struct SearchData
{
- const gchar *name_pattern; // the pattern that filenames should match to end up in the file-list
- const gchar *content_pattern; // the pattern that the content of a file should match to end up in the file-list
+ const gchar *name_pattern; // the pattern that file names should match to end up in the file list
+ const gchar *content_pattern; // the pattern that the content of a file should match to end up in the file list
const gchar *dir; // the current dir of the search routine
Filter *name_filter;
Modified: trunk/src/gnome-cmd-xfer.cc
==============================================================================
--- trunk/src/gnome-cmd-xfer.cc (original)
+++ trunk/src/gnome-cmd-xfer.cc Fri Sep 5 17:22:17 2008
@@ -259,7 +259,7 @@
if (data->done)
{
- // Remove files from the source file-list when a move operation has finished
+ // Remove files from the source file list when a move operation has finished
if (data->xferOptions & GNOME_VFS_XFER_REMOVESOURCE)
if (data->src_fl && data->src_files)
{
@@ -268,9 +268,9 @@
previous function used here:
gnome_cmd_file_list_remove_files (data->src_fl, data->src_files);
- After 'async_xfer_callback' has been called the file-list, 'src_files' has
+ After 'async_xfer_callback' has been called the file list, 'src_files' has
not been altered and source files that have moved might be write protected.
- So we need to check if files that are to be removed from the file-list
+ So we need to check if files that are to be removed from the file list
still exist.
*************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]