[xiph-commits] r12517 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Fri Feb 23 22:13:40 PST 2007
Author: xiphmont
Date: 2007-02-23 22:13:38 -0800 (Fri, 23 Feb 2007)
New Revision: 12517
Modified:
trunk/sushivision/dimension.c
trunk/sushivision/plot.c
Log:
Increase flushing paranoia around expander functionality to increase smoothness of toplevel resize op
Modified: trunk/sushivision/dimension.c
===================================================================
--- trunk/sushivision/dimension.c 2007-02-24 06:10:35 UTC (rev 12516)
+++ trunk/sushivision/dimension.c 2007-02-24 06:13:38 UTC (rev 12517)
@@ -471,6 +471,10 @@
// allow the toplevel to resize automatically
gtk_window_set_policy (GTK_WINDOW (dw->dl->p->private->toplevel), FALSE, FALSE, TRUE);
+ while(gtk_events_pending()){
+ gtk_main_iteration();
+ gdk_flush();
+ }
if (gtk_expander_get_expanded (expander)){
gtk_widget_show(dw->entry[0]);
Modified: trunk/sushivision/plot.c
===================================================================
--- trunk/sushivision/plot.c 2007-02-24 06:10:35 UTC (rev 12516)
+++ trunk/sushivision/plot.c 2007-02-24 06:13:38 UTC (rev 12517)
@@ -1124,6 +1124,10 @@
gtk_widget_set_size_request(widget,
widget->allocation.width,
widget->allocation.height);
+ while(gtk_events_pending()){
+ gtk_main_iteration();
+ gdk_flush();
+ }
}else{
gtk_widget_set_size_request(widget,400,200);
More information about the commits
mailing list