Recent

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

edvard

  • Full Member
  • ***
  • Posts: 172
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.

Arch (though I may go back to Debian)| FreePascal 3.2.2 + Lazarus 2.2.4, GTK2+ and Qt.  Mostly Qt...

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • 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.3.0 (rev main-2_3-2863...) FPC 3.3.1 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: 172
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.

Arch (though I may go back to Debian)| FreePascal 3.2.2 + Lazarus 2.2.4, GTK2+ and Qt.  Mostly Qt...

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
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: 1594
    • 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

 

TinyPortal © 2005-2018