Re: 1.1.9 hpaned changes




Pavel.Janik@inet.cz (Pavel Janik ml.) writes:

> Hi,
> 
> my program linked with 1.1.9 segfaults. 1.1.7 is ok, never tried 1.1.8
> (when the compilation of 1.1.8 just ends I received announce of 1.1.9
> ;-). Sorry, I can not provide clear source example yet.
> 
> gdb says:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x400b077b in gtk_hpaned_size_allocate (widget=0x8093bb8, 
>     allocation=0xbfffedd0) at gtkhpaned.c:147
> 147       gtk_paned_compute_position (paned,
> (gdb) where
> #0  0x400b077b in gtk_hpaned_size_allocate (widget=0x8093bb8, 
>     allocation=0xbfffedd0) at gtkhpaned.c:147
> #1  0x40122b51 in gtk_marshal_NONE__POINTER () at gtkmarshal.c:187
> #2  0x400ebc16 in gtk_signal_real_emit (object=0x8093bb8, signal_id=12, 

Try the following patch. Apparently, you are only filling
in one pane of the HPaned widget.

Thanks for the report,
                                        Owen

Index: gtkhpaned.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkhpaned.c,v
retrieving revision 1.13
diff -u -r1.13 gtkhpaned.c
--- gtkhpaned.c	1998/12/15 17:56:25	1.13
+++ gtkhpaned.c	1998/12/17 23:31:02
@@ -148,8 +148,8 @@
 			      widget->allocation.width
 			        - paned->gutter_size
 			        - 2 * border_width,
-			      paned->child1->requisition.width,
-			      paned->child2->requisition.width);
+			      paned->child1 ? paned->child1->requisition.width : 0,
+			      paned->child2 ? paned->child2->requisition.width : 0);
   
   /* Move the handle before the children so we don't get extra expose events */
 
Index: gtkvpaned.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkvpaned.c,v
retrieving revision 1.13
diff -u -r1.13 gtkvpaned.c
--- gtkvpaned.c	1998/12/15 17:56:29	1.13
+++ gtkvpaned.c	1998/12/17 23:31:02
@@ -148,8 +148,8 @@
 			      widget->allocation.height
 			        - paned->gutter_size
 			        - 2 * border_width,
-			      paned->child1->requisition.height,
-			      paned->child2->requisition.height);
+			      paned->child1 ? paned->child1->requisition.height : 0,
+			      paned->child2 ? paned->child2->requisition.height : 0);
 
   /* Move the handle before the children so we don't get extra expose events */
 



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