diff options
author | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2012-04-26 16:16:45 -0400 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe@ca.ibm.com> | 2012-04-26 17:00:11 -0400 |
commit | f32a2ed157ab860b62d8954a5c2aaea08e445661 (patch) | |
tree | e93139304ae95743ee9bee51497fa822fe66d7f6 /bundles | |
parent | ae4007f11a15afcb4fc57e9bd2429328396e9446 (diff) | |
download | eclipse.platform.swt-f32a2ed157ab860b62d8954a5c2aaea08e445661.tar.gz eclipse.platform.swt-f32a2ed157ab860b62d8954a5c2aaea08e445661.tar.xz eclipse.platform.swt-f32a2ed157ab860b62d8954a5c2aaea08e445661.zip |
Fix console warning in ToolItem
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java index 5075f7c250..735b54ca2b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java @@ -584,11 +584,17 @@ int /*long*/ gtk_create_menu_proxy (int /*long*/ widget) { if (index != -1) { int /*long*/ pixbuf = imageList.getPixbuf (index); byte[] label = null; - int [] showImages = new int []{1}; - int /*long*/ settings = OS.gtk_settings_get_default(); - if (settings != 0) { - OS.g_object_get (settings, OS.gtk_menu_images, showImages, 0); - } + int [] showImages = new int [1]; + /* + * This code is intentionally commented out because it is outputting + * warnings to the console. If there is no text then the tooltip text + * will be used for overflow menu items. + */ +// int /*long*/ settings = OS.gtk_settings_get_default(); +// if (settings != 0) { +// OS.g_object_get (settings, OS.gtk_menu_images, showImages, 0); +// } + /* * GTK tool items with only image appear as blank items * in overflow menu when the system property "gtk-menu-images" |