RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1479070 - log widget is limited in height
Summary: log widget is limited in height
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gtk3
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Benjamin Otte
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-07 21:39 UTC by Oliver Ilian
Modified: 2020-12-14 09:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-12 21:06:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of window with limited log widget view (21.30 KB, image/png)
2017-08-07 21:40 UTC, Oliver Ilian
no flags Details

Description Oliver Ilian 2017-08-07 21:39:52 UTC
Description of problem:
In a window where you have the option to show the log window, the log window widget is very limited in height (see screenshot)

Version-Release number of selected component (if applicable):
gnome-shell-3.22.3-17.el7.x86_64
gtk3-3.22.10-4.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. open a window that has a log widget (like the sealert bug report window (see screenshot)
2. expand the log widget

Actual results:
The window/widget is very small

Expected results:
The window/widget should fill the whole parent window

Additional info:
This also happens when you create log widgets with the yad tool

Comment 2 Oliver Ilian 2017-08-07 21:40:39 UTC
Created attachment 1310361 [details]
screenshot of window with limited log widget view

Comment 3 Brandon Haberfeld 2017-10-18 07:43:58 UTC
We have experienced the same issue with gtk3.22 affecting YAD and traced it to the following:

yad-0.39.0-1.el7.x86_64 RPM does not allow the progress bar log expander object to fill the parent

Run the gtk debugger to see the property: 
 >export GTK_DEBUG=interactive yad
 >yad  --progress --enable-log --log-expanded --log-height=5000 < <(echo "#Some text in the log window")

Using the debugger you can manually set the expand property of the sw container to TURE (it's is false and shouldn't be) and instantly the log window expands.


On further investigation in the YAD code in progress.c:

      ex = gtk_expander_new (options.progress_data.log);
      gtk_expander_set_spacing (GTK_EXPANDER (ex), 2);
      gtk_expander_set_expanded (GTK_EXPANDER (ex), options.progress_data.log_expanded);
 1    gtk_box_pack_start (GTK_BOX (w), ex, TRUE, TRUE, 2);

     sw = gtk_scrolled_window_new (NULL, NULL);
     gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_ETCHED_IN);
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), options.hscroll_policy, options.vscroll_policy);
     gtk_container_add (GTK_CONTAINER (ex), sw);

      progress_log = gtk_text_view_new ();
      gtk_widget_set_name (progress_log, "yad-text-widget");
      gtk_widget_set_size_request (progress_log, -1, options.progress_data.log_height);
      gtk_container_add (GTK_CONTAINER (sw), progress_log);


The problem seems to be that in line 1 the gtk constructor gtk_box_pack_start is given both TRUE, TRUE parameters to force child objects to autoexpand to their full height.  This is no longer being obeys in gtk3.22 and was being obeys in gtk 3.14.
The result is that the scroll window object (sw above) does not expand because it's bounding  container is also not filling the parent box when packed.

- 
There is therefore a fundamental change (or bug) in the gtk_box_pack_start constructor which is ignoring or not passing the two TRUE, TRUE arguments that control the "expand" property of the child objects. In GTK 3.22 the default value is being forced to FALSE for the "expand" property of a SW object  / When packed into a container object, the parameters of TRUE, TRUE are no longer being obeyed.

Brandon Haberfeld
Investec Bank
brandonh.za


Note You need to log in before you can comment on or make changes to this bug.