[gnome-control-center/wip/animated-notebook] shell: Remove unused return value



commit 5c88d4f81e4984b4d05ded674e18dd2b76f9500b
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 4 18:02:17 2012 +0100

    shell: Remove unused return value

 shell/cc-notebook.c |    8 +++-----
 shell/cc-notebook.h |    2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index 7ad795c..6983a96 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -333,7 +333,7 @@ cc_notebook_select_page (CcNotebook *self,
 		g_warning ("Could not find widget '%p' in CcNotebook '%p'", widget, self);
 }
 
-int
+void
 cc_notebook_add_page (CcNotebook *self,
                       GtkWidget  *widget)
 {
@@ -341,8 +341,8 @@ cc_notebook_add_page (CcNotebook *self,
         ClutterActor *embed;
         int res;
 
-        g_return_val_if_fail (CC_IS_NOTEBOOK (self), -1);
-        g_return_val_if_fail (GTK_IS_WIDGET (widget), -1);
+        g_return_if_fail (CC_IS_NOTEBOOK (self));
+        g_return_if_fail (GTK_IS_WIDGET (widget));
 
         frame = clutter_actor_new ();
         clutter_actor_set_layout_manager (frame, clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_FILL,
@@ -358,8 +358,6 @@ cc_notebook_add_page (CcNotebook *self,
 
         if (self->priv->selected_page == NULL)
 		_cc_notebook_select_page (self, widget, res);
-
-        return res;
 }
 
 void
diff --git a/shell/cc-notebook.h b/shell/cc-notebook.h
index 422ee51..508d54a 100644
--- a/shell/cc-notebook.h
+++ b/shell/cc-notebook.h
@@ -54,7 +54,7 @@ GType           cc_notebook_get_type                    (void) G_GNUC_CONST;
 
 GtkWidget *     cc_notebook_new                         (void);
 
-int             cc_notebook_add_page                    (CcNotebook *self,
+void            cc_notebook_add_page                    (CcNotebook *self,
                                                          GtkWidget  *widget);
 void            cc_notebook_remove_page                 (CcNotebook *self,
                                                          GtkWidget  *widget);



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