After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783145 - GtkExpander collapses unintendedly
GtkExpander collapses unintendedly
Status: RESOLVED DUPLICATE of bug 774134
Product: gtk+
Classification: Platform
Component: Widget: Other
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-05-27 10:30 UTC by Andreas Matthias
Modified: 2017-08-25 00:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example code. (772 bytes, text/x-csrc)
2017-05-27 10:30 UTC, Andreas Matthias
Details

Description Andreas Matthias 2017-05-27 10:30:45 UTC
Created attachment 352684 [details]
Example code.

In the attached example, GtkExpander collapses unintendedly after clicking into GtkEntry.

Steps to reproduce this:

1) Compile with:
   gcc expander.c -o expander `pkg-config --cflags --libs gtk+-3.0`
2) Start program.
3) Mouse click into the entry field.

What happens:

   The moment I click into the entry box the expander collapses.

Expected behavior:

   Expander should not collapse.

Tested with:

   Gtk+ 3.22.11  (Ubuntu 17.04)

Notes: Only the very first click into the entry box triggers the closing of the expander. Afterwards expander and entry box work as expected.
Comment 1 Daniel Boles 2017-08-06 01:56:17 UTC
I cannot reproduce this (with 3.22.17 on Debian unstable)

Does this still occur for you? If so, please can you provide any other info you think might be relevant? e.g. whether you are using X11 or Wayland as compositor, chiefly
Comment 2 Andreas Matthias 2017-08-10 20:10:45 UTC
Now I've compiled and linked it with 3.22.17 but the behavior is still the same.

I'm using Xorg:

  $ echo $XDG_SESSION_TYPE 
  x11

  $ loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type
  Type=x11

But then I noticed that the binary is linked against following wayland libs:

  libwayland-cursor.so.0
  libwayland-egl.so.1
  libwayland-client.so.0

Is this correct?
Comment 3 Daniel Boles 2017-08-25 00:55:06 UTC
I'm pretty sure this is a duplicate of the following. See there for a link to another fix I just pushed for a problem with Expander - i.e. a collapsed child still receiving GDK input - and a request if you can test with that patch and confirm whether it makes any difference. If not, we can figure it out there.

*** This bug has been marked as a duplicate of bug 774134 ***