gnome-commander r2148 - trunk/src



Author: epiotr
Date: Fri Oct  3 17:36:25 2008
New Revision: 2148
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2148&view=rev

Log:
Code cleanup

Modified:
   trunk/src/gnome-cmd-file-list.h
   trunk/src/gnome-cmd-search-dialog.cc

Modified: trunk/src/gnome-cmd-file-list.h
==============================================================================
--- trunk/src/gnome-cmd-file-list.h	(original)
+++ trunk/src/gnome-cmd-file-list.h	Fri Oct  3 17:36:25 2008
@@ -117,7 +117,7 @@
     void sort();
     GList *sort_selection(GList *list);
 
-    GList *get_visible_files();                 // Returns a list with all files shown in the file list. The list is the same as that in the file-list it self so make a copy and ref the files if needed
+    GList *get_visible_files();                 // Returns a list with all files shown in the file list. The list is the same as that in the file list it self so make a copy and ref the files if needed
     GList *get_selected_files();                // Returns a list with all selected files. The list returned is a copy and should be freed when no longer needed. The files in the list is however not refed before returning
     GList *get_marked_files();                  // Returns a list with all marked files. The list returned is a copy and should be freed when no longer needed. The files in the list is however not refed before returning
                                                 // A marked file is a file that has been selected with ins etc. The file that is currently focused is not marked

Modified: trunk/src/gnome-cmd-search-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.cc	(original)
+++ trunk/src/gnome-cmd-search-dialog.cc	Fri Oct  3 17:36:25 2008
@@ -634,17 +634,17 @@
  */
 static void on_goto (GtkButton *button, GnomeCmdSearchDialog *dialog)
 {
-    GnomeCmdFile *finfo = GNOME_CMD_FILE_LIST (dialog->priv->result_list)->get_selected_file();
+    GnomeCmdFile *f = GNOME_CMD_FILE_LIST (dialog->priv->result_list)->get_selected_file();
 
-    if (!finfo)
+    if (!f)
         return;
 
-    gchar *fpath = gnome_cmd_file_get_path (finfo);
+    gchar *fpath = gnome_cmd_file_get_path (f);
     gchar *dpath = g_path_get_dirname (fpath);
 
     GnomeCmdFileSelector *fs = gnome_cmd_main_win_get_fs (main_win, ACTIVE);
     fs->goto_directory(dpath);
-    fs->file_list()->focus_file(gnome_cmd_file_get_name (finfo), TRUE);
+    fs->file_list()->focus_file(gnome_cmd_file_get_name (f), TRUE);
 
     g_free (fpath);
     g_free (dpath);



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