[gnome-control-center/wip/animated-notebook] shell: Remove index from public API
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/animated-notebook] shell: Remove index from public API
- Date: Fri, 4 May 2012 16:24:11 +0000 (UTC)
commit cd19ce2f01329d573d4a6099d954c2c0bf548b68
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 4 13:12:22 2012 +0100
shell: Remove index from public API
shell/cc-notebook.c | 28 ++++------------------------
shell/cc-notebook.h | 5 -----
2 files changed, 4 insertions(+), 29 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index ab2ae84..9735b2b 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -68,6 +68,10 @@ static GParamSpec *obj_props[LAST_PROP] = { NULL, };
G_DEFINE_TYPE (CcNotebook, cc_notebook, GTK_TYPE_BOX)
+static void cc_notebook_select_page_at_index (CcNotebook *self,
+ int index_);
+
+
static void
cc_notebook_get_property (GObject *gobject,
guint prop_id,
@@ -337,22 +341,6 @@ cc_notebook_select_page_at_index (CcNotebook *self,
g_object_notify_by_pspec (G_OBJECT (self), obj_props[PROP_CURRENT_PAGE]);
}
-void
-cc_notebook_select_previous_page (CcNotebook *self)
-{
- g_return_if_fail (CC_IS_NOTEBOOK (self));
-
- cc_notebook_select_page_at_index (self, self->priv->selected_index - 1);
-}
-
-void
-cc_notebook_select_next_page (CcNotebook *self)
-{
- g_return_if_fail (CC_IS_NOTEBOOK (self));
-
- cc_notebook_select_page_at_index (self, self->priv->selected_index + 1);
-}
-
int
cc_notebook_add_page (CcNotebook *self,
GtkWidget *widget)
@@ -404,14 +392,6 @@ cc_notebook_remove_page (CcNotebook *self,
}
}
-int
-cc_notebook_get_selected_index (CcNotebook *self)
-{
- g_return_val_if_fail (CC_IS_NOTEBOOK (self), -1);
-
- return self->priv->selected_index;
-}
-
GtkWidget *
cc_notebook_get_selected_page (CcNotebook *self)
{
diff --git a/shell/cc-notebook.h b/shell/cc-notebook.h
index 7a5a768..422ee51 100644
--- a/shell/cc-notebook.h
+++ b/shell/cc-notebook.h
@@ -61,12 +61,7 @@ void cc_notebook_remove_page (CcNotebook *self,
void cc_notebook_select_page (CcNotebook *self,
GtkWidget *widget);
-void cc_notebook_select_page_at_index (CcNotebook *self,
- int index_);
-void cc_notebook_select_previous_page (CcNotebook *self);
-void cc_notebook_select_next_page (CcNotebook *self);
-int cc_notebook_get_selected_index (CcNotebook *self);
GtkWidget * cc_notebook_get_selected_page (CcNotebook *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]