[gnome-commander] Fixed problem #584727 (wrong positioning of file popup menu)



commit 05416014fb704b6123238e32da7511f982ac21c8
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jun 4 20:00:52 2009 +0200

    Fixed problem #584727 (wrong positioning of file popup menu)
---
 ChangeLog                  |    5 +++++
 NEWS                       |    1 +
 doc/C/gnome-commander.xml  |    3 +++
 src/gnome-cmd-file-list.cc |    4 ++--
 4 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3bc58dd..926453a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-04  Piotr Eljasiak  <epiotr use pl>
+
+	* src/gnome-cmd-file-list.cc:
+	Fixed problem #584727 (wrong positioning of file popup menu)
+
 2009-06-01  Piotr Eljasiak  <epiotr use pl>
 
 	* src/gnome-cmd-xml-config.cc:
diff --git a/NEWS b/NEWS
index 4e8b21f..6038192 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ Bug fixes:
  * Fixed problem #579633 (accessing administrator privileges with gksudo)
  * Fixed problem #583135 (disabled 'Go to' button in search dialog)
  * Fixed problem #583711 (crash when pressing ESC in bookmark dialog)
+ * Fixed problem #584727 (wrong positioning of file popup menu)
  * Fixed problem with setting equal pane size in horizontal mode
  * Fixed problem with refreshing MIME information after file renaming
 
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 83b007e..8355dd9 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6025,6 +6025,9 @@
                             <para>Fixed problem #583711 (crash when pressing ESC in bookmark dialog)</para>
                         </listitem>
                         <listitem>
+                            <para>Fixed problem #584727 (wrong positioning of file popup menu)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problem with setting equal pane size in horizontal mode</para>
                         </listitem>
                         <listitem>
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 3e91bde..be1ec23 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -698,9 +698,9 @@ static void popup_position_function (GtkMenu *menu, gint *x, gint *y, gboolean *
 {
     GnomeCmdFileList *fl = GNOME_CMD_FILE_LIST (user_data);
 
-    gint w, h;
+    gint unused_x, unused_w, unused_h;
 
-    get_focus_row_coordinates (fl, *x, *y, w, h);
+    get_focus_row_coordinates (fl, unused_x, *y, unused_w, unused_h);
 }
 
 



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