GNOME Bugzilla – Bug 304482
GtkComboBoxEntry editable entry should be centered vertically
Last modified: 2007-01-02 14:26:35 UTC
Please describe the problem: Unlike a GtkComboBox' currently selected item, the active item of a GtkComboBoxEntry is not centered vertically if the widget grows in size. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 46535 [details] screenshot showing problem It would be really cool to have this fixed i could use a GtkComboBoxEntry for the font-size in AbiWord.
Do you have a testcase showing the problematic behaviour ? It seems to work fine for me.
Created attachment 46623 [details] testcase Just open the attached .glade file in glade, type something into the GtkComboBoxEntry and the resize the window. The text always stays aligned left-top.
This is really a GtkEntry issue
Created attachment 50649 [details] [review] Center the text in GtkEntry. Patch against CVS HEAD. Tested with several applications.
Created attachment 50651 [details] [review] Center the text in GtkEntry Previous patch had problems with expanding GtkEntry. Normal GtkEntry widget doesn't expand the frame like the GtkComboBoxEntry does. This time, it centers the text in the frame, as opposed to the full height of the widget. Patch against CVS HEAD.
Created attachment 78905 [details] [review] updated to avoid bitrot
2007-01-02 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c (get_text_area_size): Center in the frame. (#304482, Rob Staudinger, patch by Richard Stellingwerff)