[glade3/signal-tree-model] glade-signal(-class): Const fixes



commit a654ad9307819137e29f6629673e9728f138b398
Author: Johannes Schmid <jhs gnome org>
Date:   Fri Jan 7 12:55:49 2011 +0100

    glade-signal(-class): Const fixes

 gladeui/glade-signal-class.c |    8 ++++----
 gladeui/glade-signal-class.h |    8 ++++----
 gladeui/glade-signal.c       |   10 +++++-----
 gladeui/glade-signal.h       |   10 +++++-----
 4 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/gladeui/glade-signal-class.c b/gladeui/glade-signal-class.c
index 895fc67..df96fdd 100644
--- a/gladeui/glade-signal-class.c
+++ b/gladeui/glade-signal-class.c
@@ -93,7 +93,7 @@ glade_signal_class_update_from_node (GladeSignalClass   *signal_class,
 }
 
 GladeWidgetAdaptor *
-glade_signal_class_get_adaptor (GladeSignalClass *signal_class)
+glade_signal_class_get_adaptor (const GladeSignalClass *signal_class)
 {
   g_return_val_if_fail (signal_class != NULL, NULL);
 
@@ -101,7 +101,7 @@ glade_signal_class_get_adaptor (GladeSignalClass *signal_class)
 }
 
 G_CONST_RETURN gchar *
-glade_signal_class_get_name (GladeSignalClass  *signal_class)
+glade_signal_class_get_name (const GladeSignalClass  *signal_class)
 {
   g_return_val_if_fail (signal_class != NULL, NULL);
 
@@ -109,7 +109,7 @@ glade_signal_class_get_name (GladeSignalClass  *signal_class)
 }
 
 G_CONST_RETURN gchar *
-glade_signal_class_get_type (GladeSignalClass  *signal_class)
+glade_signal_class_get_type (const GladeSignalClass  *signal_class)
 {
   g_return_val_if_fail (signal_class != NULL, NULL);
 
@@ -117,7 +117,7 @@ glade_signal_class_get_type (GladeSignalClass  *signal_class)
 }
 
 GSignalFlags
-glade_signal_class_get_flags (GladeSignalClass *signal_class)
+glade_signal_class_get_flags (const GladeSignalClass *signal_class)
 {
   g_return_val_if_fail (signal_class != NULL, 0);
 
diff --git a/gladeui/glade-signal-class.h b/gladeui/glade-signal-class.h
index ee2b6a9..89baef0 100644
--- a/gladeui/glade-signal-class.h
+++ b/gladeui/glade-signal-class.h
@@ -55,10 +55,10 @@ void                  glade_signal_class_update_from_node         (GladeSignalCl
 								   GladeXmlNode       *node,
 								   const gchar        *domain);
 
-GladeWidgetAdaptor   *glade_signal_class_get_adaptor              (GladeSignalClass   *signal_class);
-G_CONST_RETURN gchar *glade_signal_class_get_name                 (GladeSignalClass   *signal_class);
-G_CONST_RETURN gchar *glade_signal_class_get_type                 (GladeSignalClass   *signal_class);
-GSignalFlags          glade_signal_class_get_flags                (GladeSignalClass   *signal_class);
+GladeWidgetAdaptor   *glade_signal_class_get_adaptor              (const GladeSignalClass   *signal_class);
+G_CONST_RETURN gchar *glade_signal_class_get_name                 (const GladeSignalClass   *signal_class);
+G_CONST_RETURN gchar *glade_signal_class_get_type                 (const GladeSignalClass   *signal_class);
+GSignalFlags          glade_signal_class_get_flags                (const GladeSignalClass   *signal_class);
 
 void                  glade_signal_class_set_since                (GladeSignalClass   *signal_class,
 								   guint16             since_major,
diff --git a/gladeui/glade-signal.c b/gladeui/glade-signal.c
index 4efe0d0..11783a6 100644
--- a/gladeui/glade-signal.c
+++ b/gladeui/glade-signal.c
@@ -425,7 +425,7 @@ glade_signal_set_handler (GladeSignal *signal,
 }
 
 G_CONST_RETURN gchar *
-glade_signal_get_handler (GladeSignal *signal)
+glade_signal_get_handler (const GladeSignal *signal)
 {
   g_return_val_if_fail (GLADE_IS_SIGNAL (signal), NULL);
 
@@ -449,7 +449,7 @@ glade_signal_set_userdata (GladeSignal *signal,
 }
 
 G_CONST_RETURN gchar *
-glade_signal_get_userdata (GladeSignal *signal)
+glade_signal_get_userdata (const GladeSignal *signal)
 {
   g_return_val_if_fail (GLADE_IS_SIGNAL (signal), NULL);
 
@@ -471,7 +471,7 @@ glade_signal_set_after (GladeSignal *signal,
 }
 
 gboolean
-glade_signal_get_after (GladeSignal *signal)
+glade_signal_get_after (const GladeSignal *signal)
 {
   g_return_val_if_fail (GLADE_IS_SIGNAL (signal), FALSE);
 
@@ -493,7 +493,7 @@ glade_signal_set_swapped (GladeSignal *signal,
 }
 
 gboolean
-glade_signal_get_swapped (GladeSignal *signal)
+glade_signal_get_swapped (const GladeSignal *signal)
 {
   g_return_val_if_fail (GLADE_IS_SIGNAL (signal), FALSE);
 
@@ -517,7 +517,7 @@ glade_signal_set_support_warning (GladeSignal *signal,
 }
 
 G_CONST_RETURN gchar *
-glade_signal_get_support_warning (GladeSignal *signal)
+glade_signal_get_support_warning (const GladeSignal *signal)
 {
   g_return_val_if_fail (GLADE_IS_SIGNAL (signal), NULL);
 
diff --git a/gladeui/glade-signal.h b/gladeui/glade-signal.h
index 165c210..453a680 100644
--- a/gladeui/glade-signal.h
+++ b/gladeui/glade-signal.h
@@ -52,19 +52,19 @@ void                  glade_signal_set_name            (GladeSignal        *sign
 G_CONST_RETURN gchar *glade_signal_get_name            (const GladeSignal        *signal);
 void                  glade_signal_set_handler         (GladeSignal        *signal,
 							const gchar        *handler);
-G_CONST_RETURN gchar *glade_signal_get_handler         (GladeSignal        *signal);
+G_CONST_RETURN gchar *glade_signal_get_handler         (const GladeSignal        *signal);
 void                  glade_signal_set_userdata        (GladeSignal        *signal,
 							const gchar        *userdata);
-G_CONST_RETURN gchar *glade_signal_get_userdata        (GladeSignal        *signal);
+G_CONST_RETURN gchar *glade_signal_get_userdata        (const GladeSignal        *signal);
 void                  glade_signal_set_after           (GladeSignal        *signal,
 							gboolean            after);
-gboolean              glade_signal_get_after           (GladeSignal        *signal);
+gboolean              glade_signal_get_after           (const GladeSignal        *signal);
 void                  glade_signal_set_swapped         (GladeSignal        *signal,
 							gboolean            swapped);
-gboolean              glade_signal_get_swapped         (GladeSignal        *signal);
+gboolean              glade_signal_get_swapped         (const GladeSignal        *signal);
 void                  glade_signal_set_support_warning (GladeSignal        *signal,
 							const gchar        *support_warning);
-G_CONST_RETURN gchar *glade_signal_get_support_warning (GladeSignal        *signal);
+G_CONST_RETURN gchar *glade_signal_get_support_warning (const GladeSignal        *signal);
 
 G_END_DECLS
 



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