small control frame patch



This fixes a couple of places where control frames were being
incorrectly treated as GtkObjects rather than GObjects.

ok to commit?

-dave

? control-frame-gobject.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libbonoboui/ChangeLog,v
retrieving revision 1.223
diff -u -r1.223 ChangeLog
--- ChangeLog	2002/01/02 12:27:09	1.223
+++ ChangeLog	2002/01/02 20:41:23
@@ -1,3 +1,10 @@
+2002-01-02  Dave Camp  <dave ximian com>
+
+	* bonobo/bonobo-control-frame.c (impl_Bonobo_ControlFrame_notifyActivated): 
+	(impl_Bonobo_ControlFrame_activateURI): Use g_signal_emit instead of 
+	gtk_signal_emit, and cast the control frame to GObject rather than
+	GtkObject.
+
 2002-01-02  Michael Meeks  <michael ximian com>
 
 	* bonobo/bonobo-ui-component.c
Index: bonobo/bonobo-control-frame.c
===================================================================
RCS file: /cvs/gnome/libbonoboui/bonobo/bonobo-control-frame.c,v
retrieving revision 1.92
diff -u -r1.92 bonobo-control-frame.c
--- bonobo/bonobo-control-frame.c	2001/12/21 18:50:19	1.92
+++ bonobo/bonobo-control-frame.c	2002/01/02 20:41:24
@@ -134,8 +134,8 @@
 	BonoboControlFrame *frame = BONOBO_CONTROL_FRAME (
 		bonobo_object_from_servant (servant));
 
-	gtk_signal_emit (GTK_OBJECT (frame),
-			 control_frame_signals [ACTIVATED], state);
+	g_signal_emit (G_OBJECT (frame),
+		       control_frame_signals [ACTIVATED], 0, state);
 }
 
 static void
@@ -158,9 +158,9 @@
 {
 	BonoboControlFrame *frame = BONOBO_CONTROL_FRAME (bonobo_object_from_servant (servant));
 
-	gtk_signal_emit (GTK_OBJECT (frame),
-			 control_frame_signals [ACTIVATE_URI],
-			 (const char *) uri, (gboolean) relative);
+	g_signal_emit (G_OBJECT (frame),
+		       control_frame_signals [ACTIVATE_URI], 0,
+		       (const char *) uri, (gboolean) relative);
 }
 
 #ifdef DEBUG_CONTROL


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