Bug 394572 - [ GTK+ 3] Wrong sizing and trimming of Spinner widget
Summary: [ GTK+ 3] Wrong sizing and trimming of Spinner widget
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.3 M5   Edit
Assignee: Arun Thondapu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-11-19 10:08 EST by Anatoly Spektor CLA
Modified: 2013-02-01 05:50 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Spektor CLA 2012-11-19 10:08:09 EST
How To Reproduce:

 Run Snippet 184  with GTK+ 3 -  Spinner widget is clipped to the right 
 OR
 Run ControlExample go to Spinner Tab


Problem:

 In GTK+3 Requisition should be used to determine optimum size, thus it can be Theme independent. Also trimming should use GtkStyleContext to calculate properly border/padding.

I would like to propose this patch:

http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=spinner_clipping

Please tell me what do you think.

P.S 10x10 and 50x50 in ControlExample are not viewed properly as widget itself in the default theme is too wide.
Comment 1 Anatoly Spektor CLA 2013-01-15 17:10:40 EST
Can anyone please  review patch above ?