[xiph-commits] r12269 - trunk/sushivision

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Sat Dec 30 19:04:13 PST 2006


Author: xiphmont
Date: 2006-12-30 19:04:11 -0800 (Sat, 30 Dec 2006)
New Revision: 12269

Modified:
   trunk/sushivision/gtksucks.c
   trunk/sushivision/panel-2d.c
Log:
Fix the panel2d initial render missing bug



Modified: trunk/sushivision/gtksucks.c
===================================================================
--- trunk/sushivision/gtksucks.c	2006-12-31 02:32:12 UTC (rev 12268)
+++ trunk/sushivision/gtksucks.c	2006-12-31 03:04:11 UTC (rev 12269)
@@ -44,7 +44,7 @@
    right-clicked over an insensitive widget.  Wrap the widget
    sensitivity setting method to also also set/unset the
    GDK_BUTTON_PRESS_MASK on a widget; when insensitive, this will
-   remove it's ability to silently swallow mouse events. */
+   remove its ability to silently swallow mouse events. */
 
 /* Note that this only works after the widget is realized, as
    realization will clobber the event mask */

Modified: trunk/sushivision/panel-2d.c
===================================================================
--- trunk/sushivision/panel-2d.c	2006-12-31 02:32:12 UTC (rev 12268)
+++ trunk/sushivision/panel-2d.c	2006-12-31 03:04:11 UTC (rev 12269)
@@ -525,8 +525,12 @@
   _sushiv_panel1d_mark_recompute_linked(p);   
 
   if(plot && GTK_WIDGET_REALIZED(GTK_WIDGET(plot))){
-    if(p2->data_w != plot->w.allocation.width ||
-       p2->data_h != plot->w.allocation.height){
+    if(p2->data_w != w ||
+       p2->data_h != h){
+      
+      p2->data_w = w;
+      p2->data_h = h;
+      
       if(p2->data_rect){
 	
 	// make new rects, do a fast/dirty scaling job from old to new
@@ -541,13 +545,12 @@
 	}
 	p2->x = plot->x;
 	p2->y = plot->y;
-	p2->data_w = w;
-	p2->data_h = h;
 	_sushiv_panel2d_map_redraw(p);
+      }else{
+	p2->x = plot->x;
+	p2->y = plot->y;
       }
     }else{
-      p2->data_w = w;
-      p2->data_h = h;
       p2->x = scalespace_linear(p2->x_d->bracket[0],
 				p2->x_d->bracket[1],
 				w,



More information about the commits mailing list