Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

avoid having to scroll in GTK popup menu

I am working on a Gnome Panel Applet that displays a pop-up menu on clicking it's icon. The problem is, with lots of entries, the menu does not pop up with the first items visible, but somewhere in the middle. This makes it necessary to scroll up to see the top item (a sub-menu) and the first ones under it. These are really data, not just "menu" choices in the usual sense. Can anyone suggest a fix, other than showing fewer items? This is on Linux. Thanks!

like image 450
fstephens Avatar asked Jan 31 '26 19:01

fstephens


1 Answers

would this work...?

menu.set_active(0)
like image 112
Dave Avatar answered Feb 02 '26 09:02

Dave