[glade3/signal-tree-model] More merge fixes



commit 9e421011845f4d11c716978883207911a3719c06
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Dec 30 22:09:11 2010 +0100

    More merge fixes

 gladeui/glade-widget.c |   62 +----------------------------------------------
 gladeui/glade-widget.h |    4 +-
 2 files changed, 4 insertions(+), 62 deletions(-)
---
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c
index c65e14e..2dc36f4 100644
--- a/gladeui/glade-widget.c
+++ b/gladeui/glade-widget.c
@@ -247,9 +247,9 @@ glade_widget_add_signal_handler (GladeWidget *widget, const GladeSignal *signal_
  * Removes a signal handler from @widget 
  */
 
-static void
+void
 glade_widget_remove_signal_handler (GladeWidget * widget,
-                                    GladeSignal * signal_handler)
+                                    const GladeSignal * signal_handler)
 {
   GPtrArray *signals;
   GladeSignal *tmp_signal_handler;
@@ -1107,10 +1107,6 @@ glade_widget_class_init (GladeWidgetClass * klass)
   klass->replace_child = glade_widget_replace_child_impl;
   klass->event = glade_widget_event_impl;
 
-  klass->add_signal_handler = glade_widget_add_signal_handler_impl;
-  klass->remove_signal_handler = glade_widget_remove_signal_handler_impl;
-  klass->change_signal_handler = glade_widget_change_signal_handler_impl;
-
   klass->button_press_event = glade_widget_button_press_event_impl;
   klass->button_release_event = NULL;
   klass->motion_notify_event = NULL;
@@ -2474,60 +2470,6 @@ glade_widget_rebuild (GladeWidget * gwidget)
 }
 
 /**
- * glade_widget_add_signal_handler:
- * @widget: A #GladeWidget
- * @signal_handler: The #GladeSignal
- *
- * Adds a signal handler for @widget 
- */
-void
-glade_widget_add_signal_handler (GladeWidget * widget,
-                                 GladeSignal * signal_handler)
-{
-  g_return_if_fail (GLADE_IS_WIDGET (widget));
-
-  g_signal_emit (widget, glade_widget_signals[ADD_SIGNAL_HANDLER], 0,
-                 signal_handler);
-}
-
-
-/**
- * glade_widget_remove_signal_handler:
- * @widget: A #GladeWidget
- * @signal_handler: The #GladeSignal
- *
- * Removes a signal handler from @widget 
- */
-void
-glade_widget_remove_signal_handler (GladeWidget * widget,
-                                    GladeSignal * signal_handler)
-{
-  g_return_if_fail (GLADE_IS_WIDGET (widget));
-
-  g_signal_emit (widget, glade_widget_signals[REMOVE_SIGNAL_HANDLER], 0,
-                 signal_handler);
-}
-
-/**
- * glade_widget_change_signal_handler:
- * @widget: A #GladeWidget
- * @old_signal_handler: the old #GladeSignal
- * @new_signal_handler: the new #GladeSignal
- *
- * Changes a #GladeSignal on @widget 
- */
-void
-glade_widget_change_signal_handler (GladeWidget * widget,
-                                    GladeSignal * old_signal_handler,
-                                    GladeSignal * new_signal_handler)
-{
-  g_return_if_fail (GLADE_IS_WIDGET (widget));
-
-  g_signal_emit (widget, glade_widget_signals[CHANGE_SIGNAL_HANDLER], 0,
-                 old_signal_handler, new_signal_handler);
-}
-
-/**
  * glade_widget_list_signal_handlers:
  * @widget: a #GladeWidget
  * @signal_name: the name of the signal
diff --git a/gladeui/glade-widget.h b/gladeui/glade-widget.h
index 6740917..2a34143 100644
--- a/gladeui/glade-widget.h
+++ b/gladeui/glade-widget.h
@@ -125,8 +125,8 @@ struct _GladeWidgetClass
 	void         (*remove_child)            (GladeWidget *, GladeWidget *);
 	void         (*replace_child)           (GladeWidget *, GObject *, GObject *);
 
-	void         (*add_signal_handler)	(GladeWidget *, GladeSignal *);
-	void         (*remove_signal_handler)	(GladeWidget *, GladeSignal *);
+	void         (*add_signal_handler)	(GladeWidget *, const GladeSignal *);
+	void         (*remove_signal_handler)	(GladeWidget *, const GladeSignal *);
 	void         (*change_signal_handler)	(GladeWidget *, GladeSignal *, GladeSignal *);
 	
 	gint         (*button_press_event)      (GladeWidget *, GdkEvent *);



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