Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe2012-04-26 20:16:45 +0000
committerBogdan Gheorghe2012-04-26 20:16:45 +0000
commit609d527f761f32bc671ca3f57f13c99062063fdb (patch)
tree1127bee979ea248127247d998a1b3ea1961b30f2
parent0538a2f0aa9f7250f0105a02043985ca4ae6380d (diff)
downloadeclipse.platform.swt-bug46025.tar.gz
eclipse.platform.swt-bug46025.tar.xz
eclipse.platform.swt-bug46025.zip
Fix console warning in ToolItembug46025
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java16
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"

Back to the top