[gnome-commander] Fixed correct menu display, bug #671616
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fixed correct menu display, bug #671616
- Date: Sun, 17 Jul 2016 18:56:26 +0000 (UTC)
commit 0cc8e792c085cd8d91128a41371cf1b2aeaca671
Author: Puux <puuxmine gmail com>
Date: Sun Jul 17 14:13:18 2016 +0300
Fixed correct menu display, bug #671616
src/gnome-cmd-file-list.cc | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index fab468e..9e19950 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -791,16 +791,6 @@ static char *build_selected_file_list (GnomeCmdFileList *fl, int *file_list_len)
}
-static void popup_position_function (GtkMenu *menu, gint *x, gint *y, gboolean *push_in, gpointer user_data)
-{
- GnomeCmdFileList *fl = GNOME_CMD_FILE_LIST (user_data);
-
- gint unused_x, unused_w, unused_h;
-
- get_focus_row_coordinates (fl, unused_x, *y, unused_w, unused_h);
-}
-
-
static void show_file_popup (GnomeCmdFileList *fl, GdkEventButton *event)
{
// create the popup menu
@@ -810,7 +800,7 @@ static void show_file_popup (GnomeCmdFileList *fl, GdkEventButton *event)
g_object_ref (menu);
g_object_set_data_full (*fl, "file_popup_menu", menu, g_object_unref);
- gnome_popup_menu_do_popup (menu, (GtkMenuPositionFunc) popup_position_function, fl, event, fl, NULL);
+ gnome_popup_menu_do_popup (menu, NULL, NULL, event, fl, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]