Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 392210 - Use gtk_widget_get_preferred_size() instead gtk_widget_size_request () for GTK+ 3
Summary: Use gtk_widget_get_preferred_size() instead gtk_widget_size_request () for GT...
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 M3   Edit
Assignee: Alexander Kurtakov CLA
QA Contact:
URL:
Whiteboard: gtk3test
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-10-17 14:00 EDT by Anatoly Spektor CLA
Modified: 2012-10-24 14:46 EDT (History)
1 user (show)

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-10-17 14:00:36 EDT
This patch replaces gtk_widget_size_request() with gtk_widget_get_preferred_size () for GTK+ 3:

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

I used this documentation as a source: https://mail.gnome.org/archives/commits-list/2011-November/msg03139.html
Comment 1 Alexander Kurtakov CLA 2012-10-17 14:59:43 EDT
There is the following in the Gtk 3.x documentation.
"Note

Handle with care. Note that the natural height of a height-for-width widget will generally be a smaller size than the minimum height, since the required height for the natural width is generally smaller than the required height for the minimum width."

But as this does not affect Gtk 2 and that's our best guess I pushed it to master. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=35f130070627930dae79842022c951694c5a3dfa