Ticket #1073 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Bug when adding a widget to MokoFingerScroll using the gtk container function

Reported by: renatox@… Owned by: chris@…
Priority: high Milestone:
Component: openmoko-libs Version: unspecified
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

When a widget is added using gtk_container_add, the scroll indicator is not
shown and the click event is not received in my widget.

Attachments

figer-scroll.patch (1.8 KB) - added by renatox@… 11 years ago.
patch to solve the problem
main.c (775 bytes) - added by renatox@… 11 years ago.
example

Change History

Changed 11 years ago by renatox@…

patch to solve the problem

comment:1 Changed 11 years ago by mickey@…

  • Owner changed from mickey@… to thomas@…

comment:2 Changed 11 years ago by chris@…

  • Owner changed from thomas@… to chris@…
  • Summary changed from Bug when add a widget using the gtk container function to Bug when adding a widget to MokoFingerScroll using the gtk container function

comment:3 Changed 11 years ago by chris@…

Examining your patch, I don't understand why this new code would work and the
old wouldn't - also, this new code ignores container border width...

What kind of widget are you trying to add? To add a non-scrolling widget, you
need to wrap it with a viewport first.

Changed 11 years ago by renatox@…

example

comment:4 Changed 11 years ago by renatox@…

in this example you can see the problems with scrollbars.

comment:5 Changed 11 years ago by chris@…

  • Status changed from new to closed
  • Resolution set to fixed

Thanks for the test case and patch, something similar committed in r3688 :)

Note: See TracTickets for help on using tickets.