Recent

Author Topic: GTK2 Combobox menu bug?  (Read 3997 times)

edvard

  • Full Member
  • ***
  • Posts: 165
GTK2 Combobox menu bug?
« on: January 01, 2015, 11:05:51 am »
OK, weird thing going down with GTK2, and I wonder if there's a fix or workaround.  I have a bunch of items in a combobox, and with Qt, it works as expected, but with GTK2, clicking it opens up a HUGE bank of whitespace above the first item.  Here's a couple screenshots:

http://tinypic.com/m/ifmmfo/3

http://tinypic.com/m/ifmmfb/3
All children left unattended will be given a mocha and a puppy.

Debian 'Testing' 64-bit | Xfce 4.12 | FreePascal 3.0 + Lazarus 1.6.2, GTK2+ and Qt

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: GTK2 Combobox menu bug?
« Reply #1 on: January 01, 2015, 01:04:16 pm »
Lazarus is not guilty. Other GTK2 app do it too. See screenshot from Inkscape.
Lazarus 2.1.0 r61214:62238 FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

edvard

  • Full Member
  • ***
  • Posts: 165
Re: GTK2 Combobox menu bug?
« Reply #2 on: January 01, 2015, 08:40:01 pm »
Ah, exactly as I had hoped (kinda).  I think I had noticed that in other GTK apps, but I wonder if there's a workaround.

... besides using Qt  :P
All children left unattended will be given a mocha and a puppy.

Debian 'Testing' 64-bit | Xfce 4.12 | FreePascal 3.0 + Lazarus 1.6.2, GTK2+ and Qt

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7508
Re: GTK2 Combobox menu bug?
« Reply #3 on: January 01, 2015, 09:25:45 pm »
It looks like it expands from below and fills out at top? Maybe a default/mod/setting for Gnome systems with the menubar at the bottom?

zeljko

  • Hero Member
  • *****
  • Posts: 1081
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: GTK2 Combobox menu bug?
« Reply #4 on: January 02, 2015, 08:44:48 am »
Biggest crap I've ever seen is menu combobox in gtk. eg. pgadmin3 is gtk2, and eg. try to create table and then define some field. Combobox menu of field types have maybe 200 items, and you cannot reach eg int by typing int or at least i, so must scroll each time. Also such menu is shown from the top to the bottom of the screen. Pretty bad design