popup menu positioned partially off-screen
- From: Luciano Chavez <lnx1138 us ibm com>
- To: gtk-list gnome org
- Subject: popup menu positioned partially off-screen
- Date: 21 Aug 2002 11:07:58 -0500
Howdy y'all. I have a GTK app that displays a GtkCList and when a user
clicks on a row, display a popup context menu via gtk_menu_popup(). I
don't provide a function to position it.
The problem is that if the mouse pointer is near the bottom or right
edge of the screen, the menu ends up being placed partially outside the
screen.
I looked at the the gtk/gtkmenu.c gtk_menu_position() internal function
that is supposed to position the menu based on the width and height of
the screen and the menu so that it is positioned within the screen. At
first glance this looks correct but it doesn't seem to work right for
me.
Anyone else seen this behaviour with a pure GTK app? GNOME apps (not
GTK) that I've tried work as expected with the popup menu never going
beyond the screen bounds.
I already searched the bug reports but didn't find anything pertinent.
--
regards,
Luciano Chavez
lnx1138 us ibm com
http://evms.sourceforge.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]