Bug 7606

Summary: Combobox set_wrap_width does not work with gtk2+
Product: Mageia Reporter: Juergen Harms <juergen.harms>
Component: RPM PackagesAssignee: Olav Vitters <olav>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: jquelin, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: MGA2TOO
Source RPM: gtk+2.0 CVE:
Status comment:
Attachments: S ource script to demonstrate the error
Screenshot of the display obtained by running the error demo script
Example of a correctly displayed multi-column combobox pulldown
Copy of perl-gtk email exchange: set_wrap_width works on slackware

Description Juergen Harms 2012-09-28 10:10:48 CEST
Description of problem:

If a large number of items is to be displayed in a combobox, the set_wrap_width function allows to display the items in an array,rather than in a single column.

In Mageia, even if a set_wrap_width specifies an argument > 1, all items are nevertheless displayed in a single column, and not in an array as illustrated in
http://gtk2-perl.sourceforge.net/doc/gtk2-perl-study-guide/c4506.html
and
http://gtk2-perl.sourceforge.net/doc/gtk2-perl-study-guide/sample_programs/gtk2_combo_box_wrap.pl


Version-Release number of selected component (if applicable):
perl-Gtk2-1.242.0-2.mga2

I also tried with mageia3 alpha1: same problem

How reproducible: always


Steps to Reproduce:
1. run the demo provided as an attachment (combo-error.pl
2.
3.
Comment 1 Juergen Harms 2012-09-28 10:17:01 CEST
Created attachment 2868 [details]
S ource script to demonstrate the error

This script is an exact copy of
http://gtk2-perl.sourceforge.net/doc/gtk2-perl-study-guide/c4506.html
with 2 exceptions:
 - to avoid excessive height of the resulting display, the number of items has been reduced from 50 to 20
 - ease taking a snapshot from a window, the height of the window has been increased by inserting an additional vbox below the one with the combobox

These changes are marked by ###
Comment 2 Juergen Harms 2012-09-28 10:19:01 CEST
Created attachment 2869 [details]
Screenshot of the display obtained by running the error demo script
Comment 3 Juergen Harms 2012-09-28 10:21:27 CEST
Created attachment 2870 [details]
Example of a correctly displayed multi-column combobox pulldown

Display corresponding to the original demo, as published at
http://gtk2-perl.sourceforge.net/doc/gtk2-perl-study-guide/sample_programs/gtk2_combo_box_wrap.pl
Comment 4 Juergen Harms 2012-09-30 21:45:38 CEST
Created attachment 2889 [details]
Copy of perl-gtk email exchange: set_wrap_width works on slackware
Manuel Hiebel 2012-10-01 11:36:06 CEST

Version: 2 => Cauldron
Assignee: bugsquad => jquelin
Source RPM: (none) => perl-Gtk2
Whiteboard: (none) => MGA2TOO

Comment 5 Jerome Quelin 2012-10-01 13:20:58 CEST
if i'm trying a similar example with python (http://www.pygtk.org/pygtk2tutorial/examples/comboboxwrap.py) i get the same behaviour.

so it seems that the problem comes from gtk2 itself, not the bindings themselves (perl or python).

==> re-assigning to Olav, gtk2+ maintainer

CC: (none) => jquelin
Assignee: jquelin => olav
Source RPM: perl-Gtk2 => gtk+2.0

Jerome Quelin 2012-10-01 13:21:14 CEST

Summary: Combobox set_wrap_width does not work with perl-gtk => Combobox set_wrap_width does not work with gtk2+

Comment 6 Juergen Harms 2013-01-13 22:38:27 CET
The problem is still present in Mageia 3 (latest cauldron updates).

The evidences from Comment 4 (attachment 2889 [details]) and Comment 5 follow the same logic - check whether the problem is present in some other implementation downsteam from gtk2+, but they arrive at opposite conclusions.

How can we make progress with this bug ? This is a nice feature of gtk - I just hit the same bug again when I tried to create a combobox that offers the choice between all nodes of a lengthy directory.
Comment 7 Marja Van Waes 2015-04-19 14:55:29 CEST
Sorry, but this bug saw no action since over 2 yrs ago. 
No cauldron package has stayed the same since then.

Closing as OLD

Please reopen if this report is still valid for _current_ cauldron and/or fully
updated Mageia 4

Status: NEW => RESOLVED
CC: (none) => marja11
Resolution: (none) => OLD

Comment 8 Juergen Harms 2015-04-19 18:43:11 CEST
I have switched all my applications to gtk3 by now:
- the bug is fixed in gtk3
- when I last tried in gtk2, the bug was still there. Given that it is ok with gtk3, no need to worry if it pushes a beard.