PATCH: libbonoboui build Solaris/Forte C



Hi,

This patch fixes some void functions returning a value.
Most compilers won't tolerate that.

Laca

--------patch follows--------
Index: bonobo/bonobo-plug.c
===================================================================
RCS file: /sgnome/cvsroots/GNOME/libbonoboui/bonobo/bonobo-plug.c,v
retrieving revision 1.25
diff -u -r1.25 bonobo-plug.c
--- bonobo/bonobo-plug.c	2001/11/19 03:01:28	1.25
+++ bonobo/bonobo-plug.c	2001/11/30 20:12:38
@@ -153,8 +153,7 @@
 		 g_type_name_from_instance ((gpointer)GTK_BIN (widget)->child):
 		 "No child!");
 
-	return GTK_WIDGET_CLASS (parent_class)->size_allocate (
-		widget, allocation);
+	GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
 }
 
 static void
@@ -164,8 +163,7 @@
 	dprintf ("bonobo_plug_size_request: %d, %d\n",
 		 requisition->width, requisition->height);
 
-	return GTK_WIDGET_CLASS (parent_class)->size_request (
-		widget, requisition);
+	GTK_WIDGET_CLASS (parent_class)->size_request (widget, requisition);
 }
 
 static gboolean
Index: bonobo/bonobo-socket.c
===================================================================
RCS file: /sgnome/cvsroots/GNOME/libbonoboui/bonobo/bonobo-socket.c,v
retrieving revision 1.35
diff -u -r1.35 bonobo-socket.c
--- bonobo/bonobo-socket.c	2001/11/26 20:41:22	1.35
+++ bonobo/bonobo-socket.c	2001/11/30 20:12:38
@@ -165,8 +165,7 @@
 		 allocation->x, allocation->y,
 		 allocation->width, allocation->height);
 	
-	return GTK_WIDGET_CLASS (parent_class)->size_allocate (
-		widget, allocation);
+	GTK_WIDGET_CLASS (parent_class)->size_allocate (widget, allocation);
 }
 
 static void
-------end of patch--------



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