gnome-commander r2071 - branches/gcmd-1-3/src



Author: epiotr
Date: Tue Sep  9 20:12:39 2008
New Revision: 2071
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2071&view=rev

Log:
Code cleanup

Modified:
   branches/gcmd-1-3/src/gnome-cmd-chown-dialog.cc
   branches/gcmd-1-3/src/gnome-cmd-file-list.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-chown-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-chown-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-chown-dialog.cc	Tue Sep  9 20:12:39 2008
@@ -50,18 +50,20 @@
 
     ret = gnome_cmd_file_chown (in_finfo, uid, gid);
 
-    if (ret != GNOME_VFS_OK) {
+    if (ret != GNOME_VFS_OK)
+    {
         gchar *fpath = gnome_cmd_file_get_real_path (in_finfo);
         gchar *msg = g_strdup_printf (_("Could not chown %s\n%s"), fpath, gnome_vfs_result_to_string (ret));
         create_error_dialog (msg);
         g_free (msg);
         g_free (fpath);
     }
-    else if (!recurse) {
-        return;
-    }
+    else
+        if (!recurse)
+            return;
 
-    if (in_finfo->info->type == GNOME_VFS_FILE_TYPE_DIRECTORY) {
+    if (in_finfo->info->type == GNOME_VFS_FILE_TYPE_DIRECTORY)
+    {
         GnomeCmdDir *dir = GNOME_CMD_DIR (in_finfo);
         GList *files, *tmp;
 

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	Tue Sep  9 20:12:39 2008
@@ -1803,8 +1803,8 @@
 {
     GnomeCmdFile *selfile = get_selected_file();
 
-    gtk_clist_freeze (GTK_CLIST (this));
-    gtk_clist_clear (GTK_CLIST (this));
+    gtk_clist_freeze (*this);
+    gtk_clist_clear (*this);
 
     // resort the files and readd them to the list
     for (GList *list = priv->visible_files.sort(priv->sort_func, this); list; list = list->next)
@@ -1822,7 +1822,7 @@
     for (GList *list = priv->selected_files; list; list = list->next)
         select_file (this, GNOME_CMD_FILE (list->data));
 
-    gtk_clist_thaw (GTK_CLIST (this));
+    gtk_clist_thaw (*this);
 }
 
 



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