summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-02 10:36:18 -0400
committerArun Thondapu <arunkumar.thondapu@in.ibm.com>2012-08-06 12:43:12 +0530
commit2c810dc09ebe584d949d1446e7fe61dd64fa3e80 (patch)
treef5a8803654756be767c989b7c19e47b11c5f7e0a /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
parentf7c3702d11c37a529c17c656666e0253dc7c849e (diff)
downloadeclipse.platform.swt-2c810dc09ebe584d949d1446e7fe61dd64fa3e80.tar.gz
eclipse.platform.swt-2c810dc09ebe584d949d1446e7fe61dd64fa3e80.tar.xz
eclipse.platform.swt-2c810dc09ebe584d949d1446e7fe61dd64fa3e80.zip
Bug 385070 Use gtk_widget_has_focus instead of deprecated GTK_WIDGET_HAS_FOCUS
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
index bd91287d3d..8b376ae180 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java
@@ -518,7 +518,7 @@ void bringToTop (boolean force) {
if (activeShell == null) return;
if (!display.activePending) {
int /*long*/ focusHandle = OS.gtk_window_get_focus (activeShell.shellHandle);
- if (focusHandle != 0 && !OS.GTK_WIDGET_HAS_FOCUS (focusHandle)) return;
+ if (focusHandle != 0 && !gtk_widget_has_focus (focusHandle)) return;
}
}
/*