summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-02 16:36:51 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-08-03 11:17:00 -0400
commit5983c24ed5237e3fc3d1e8e4c23d3ce4ce153bac (patch)
treee00688b350467b1730204459583d9dd0a2720fa1 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java
parent34f0c3974a377d1fb41f2905de1ceb16ac6ba1ce (diff)
downloadeclipse.platform.swt-5983c24ed5237e3fc3d1e8e4c23d3ce4ce153bac.tar.gz
eclipse.platform.swt-5983c24ed5237e3fc3d1e8e4c23d3ce4ce153bac.tar.xz
eclipse.platform.swt-5983c24ed5237e3fc3d1e8e4c23d3ce4ce153bac.zip
Omit use of deprecated GTK_WIDGET_FLAGS
Conflicts: bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java
index ffae259736..30a87bcb95 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ProgressBar.java
@@ -287,7 +287,7 @@ void updateBar (int selection, int minimum, int maximum) {
* fix is to update the progress bar state only when realized and restore
* the state when the progress bar becomes realized.
*/
- if ((OS.GTK_WIDGET_FLAGS (handle) & OS.GTK_REALIZED) == 0) return;
+ if (!gtk_widget_get_realized (handle)) return;
double fraction = minimum == maximum ? 1 : (double)(selection - minimum) / (maximum - minimum);
OS.gtk_progress_bar_set_fraction (handle, fraction);