bonobo 1.X warning-reducing patch



I found some fairly-old changes in my bonobo CVS tree that fix a few warnings.

Should I commit these or discard them?

Index: bonobo/bonobo-ui-node.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-ui-node.c,v
retrieving revision 1.14
diff -p -u -r1.14 bonobo-ui-node.c
--- bonobo/bonobo-ui-node.c	2001/05/24 08:49:06	1.14
+++ bonobo/bonobo-ui-node.c	2001/07/24 16:51:23
@@ -9,8 +9,9 @@
  */

 #include "config.h"
-#include <stdlib.h>
 #include <bonobo/bonobo-ui-node.h>
+#include <stdlib.h>
+#include <string.h>

 #include <gnome-xml/parser.h>
 #include <gnome-xml/parserInternals.h>
Index: bonobo/bonobo-win.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-win.c,v
retrieving revision 1.105
diff -p -u -r1.105 bonobo-win.c
--- bonobo/bonobo-win.c	2001/06/26 23:22:41	1.105
+++ bonobo/bonobo-win.c	2001/07/24 16:51:24
@@ -587,7 +587,7 @@ bonobo_window_key_press_event (GtkWidget
                                GdkEventKey *event)
 {
 	gboolean handled;
-	BonoboUISyncKeys *sync;
+	BonoboUISync *sync;

handled = GTK_WIDGET_CLASS (bonobo_window_parent_class)->key_press_event (widget, event);
 	if (handled)
@@ -595,7 +595,8 @@ bonobo_window_key_press_event (GtkWidget

 	sync = BONOBO_WINDOW (widget)->priv->sync_keys;
 	if (sync)
-		return bonobo_ui_sync_keys_binding_handle (widget, event, sync);
+		return bonobo_ui_sync_keys_binding_handle
+			(widget, event, BONOBO_UI_SYNC_KEYS (sync));

 	return FALSE;
 }
Index: components/text-plain/bonobo-text-plain.c
===================================================================
RCS file: /cvs/gnome/bonobo/components/text-plain/bonobo-text-plain.c,v
retrieving revision 1.65
diff -p -u -r1.65 bonobo-text-plain.c
--- components/text-plain/bonobo-text-plain.c	2001/01/19 14:14:17	1.65
+++ components/text-plain/bonobo-text-plain.c	2001/07/24 16:51:25
@@ -288,6 +288,7 @@ text_deleted_cb (GtkText *text,
 	return FALSE;
 }

+#ifdef BONOBO_TEXT_PLAIN_TEST_UI_HANDLER
 static void
verb_ClearText_cb (BonoboUIComponent *uic, gpointer user_data, const char *cname)
 {
@@ -296,6 +297,7 @@ verb_ClearText_cb (BonoboUIComponent *ui
 	free_text (bonobo_object_data);
 	blank_control (bonobo_object_data);
 }
+#endif

 static void
 create_control_menus (bonobo_object_data_t *bonobo_object_data)

===================================================================

    -- Darin




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