[gimp/soc-2010-cage-2] app: use gimp_widget_flush_expose() for the statusbar's progress



commit 35f27c60688ec08df724f44bbeade37c959fd00b
Author: Michael Natterer <mitch gimp org>
Date:   Wed Nov 10 00:16:34 2010 +0100

    app: use gimp_widget_flush_expose() for the statusbar's progress

 app/display/gimpstatusbar.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/app/display/gimpstatusbar.c b/app/display/gimpstatusbar.c
index 125f129..48599a5 100644
--- a/app/display/gimpstatusbar.c
+++ b/app/display/gimpstatusbar.c
@@ -377,8 +377,7 @@ gimp_statusbar_progress_start (GimpProgress *progress,
           statusbar->progress_shown = TRUE;
         }
 
-      if (gtk_widget_is_drawable (bar))
-        gdk_window_process_updates (gtk_widget_get_window (bar), TRUE);
+      gimp_widget_flush_expose (bar);
 
       gimp_statusbar_override_window_title (statusbar);
 
@@ -439,8 +438,7 @@ gimp_statusbar_progress_set_text (GimpProgress *progress,
 
       gimp_statusbar_replace (statusbar, "progress", NULL, "%s", message);
 
-      if (gtk_widget_is_drawable (bar))
-        gdk_window_process_updates (gtk_widget_get_window (bar), TRUE);
+      gimp_widget_flush_expose (bar);
 
       gimp_statusbar_override_window_title (statusbar);
     }
@@ -468,8 +466,7 @@ gimp_statusbar_progress_set_value (GimpProgress *progress,
         {
           gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (bar), percentage);
 
-          if (gtk_widget_is_drawable (bar))
-            gdk_window_process_updates (gtk_widget_get_window (bar), TRUE);
+          gimp_widget_flush_expose (bar);
         }
     }
 }
@@ -496,8 +493,7 @@ gimp_statusbar_progress_pulse (GimpProgress *progress)
 
       gtk_progress_bar_pulse (GTK_PROGRESS_BAR (bar));
 
-      if (gtk_widget_is_drawable (bar))
-        gdk_window_process_updates (gtk_widget_get_window (bar), TRUE);
+      gimp_widget_flush_expose (bar);
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]