gnome-commander r1577 - in trunk: . src



Author: epiotr
Date: Fri Feb 22 07:03:17 2008
New Revision: 1577
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1577&view=rev

Log:
Fix for RMB selection

Modified:
   trunk/ChangeLog
   trunk/src/gnome-cmd-file-list.cc

Modified: trunk/src/gnome-cmd-file-list.cc
==============================================================================
--- trunk/src/gnome-cmd-file-list.cc	(original)
+++ trunk/src/gnome-cmd-file-list.cc	Fri Feb 22 07:03:17 2008
@@ -504,7 +504,6 @@
 
     if (listlen > 1)
     {
-        char *data, *copy;
         int total_len = 0;
         GList *tmp = sel_files;
         GList *uri_str_list = NULL;
@@ -535,6 +534,9 @@
 
         // allocate memory
         total_len++;
+
+        char *data, *copy;
+
         data = copy = (gchar *) g_malloc (total_len+1);
 
         // put the uri_str_list in the allocated memory
@@ -662,8 +664,8 @@
 
     if (fl->priv->right_mb_down_file == focus_file)
     {
+        select_file (fl, focus_file);
         show_file_popup (fl, NULL);
-        toggle_file (fl, focus_file);
         return FALSE;
     }
 
@@ -1060,7 +1062,7 @@
 
                     fl->priv->right_mb_down_file = finfo;
                     fl->priv->right_mb_timeout_id =
-                        gtk_timeout_add (POPUP_TIMEOUT, (GtkFunction)on_right_mb_timeout, fl);
+                        gtk_timeout_add (POPUP_TIMEOUT, (GtkFunction) on_right_mb_timeout, fl);
                 }
                 else
                     show_file_popup (fl, event);



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