Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 413950 - [GTK3] Warnings in ExpandBar
Summary: [GTK3] Warnings in ExpandBar
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 4.4 M1   Edit
Assignee: Alexander Kurtakov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2013-07-29 16:55 EDT by Silenio Quarti CLA
Modified: 2013-07-30 09:49 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 Silenio Quarti CLA 2013-07-29 16:55:28 EDT
Run controlexample and these warnings are printed in the console (Fedora 18). With Device.DEBUG=true, we can see that the warnings are comming from ExpandBar.

(SWT:7269): Gtk-WARNING **: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead

(SWT:7269): Gtk-CRITICAL **: gtk_viewport_set_shadow_type: assertion `GTK_IS_VIEWPORT (viewport)' failed

(SWT:7269): Gtk-CRITICAL **: gtk_scrollable_get_vscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

(SWT:7269): Gtk-CRITICAL **: gtk_scrollable_get_vscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

(SWT:7269): Gtk-CRITICAL **: gtk_scrollable_get_vscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

(SWT:7269): Gtk-CRITICAL **: gtk_scrollable_get_vscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

(SWT:7269): Gtk-CRITICAL **: gtk_scrollable_get_vscroll_policy: assertion `GTK_IS_SCROLLABLE (scrollable)' failed

(SWT:7269): GLib-GObject-WARNING **: g_object_set_valist: object class `GtkBox' has no property named `hadjustment'
Comment 1 Silenio Quarti CLA 2013-07-29 16:56:30 EDT
Warnings started happening because of 

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=ca5e588017b8795b03417457562b8f46567bc04f
Comment 2 Alexander Kurtakov CLA 2013-07-30 08:11:25 EDT
Silenio is this with gtk2 or gtk3? There shouldn't be any change for GTK older than 3.8 according to this commit and Fedora 18 has 3.6.4. Am I missing smth obvious?
Comment 3 Alexander Kurtakov CLA 2013-07-30 08:37:24 EDT
Ah, my bad - reversed version check. Fixed in master http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=5d308b0d1dae435b293212e22df586b30bb1d27e
Comment 4 Alexander Kurtakov CLA 2013-07-30 08:58:38 EDT
Marking as fixed.
Comment 5 Silenio Quarti CLA 2013-07-30 09:49:10 EDT
(In reply to comment #3)
> Ah, my bad - reversed version check. Fixed in master
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=5d308b0d1dae435b293212e22df586b30bb1d27e

Ah Ok, I have changed the version check to look like other checks in the project (with GTK_VERSION on the left). I believe it is easier to understand that way.