[gnome-documents/wip/ui-changes: 9/25] toolbar: add gd_main_toolbar_get_mode()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/ui-changes: 9/25] toolbar: add gd_main_toolbar_get_mode()
- Date: Sat, 3 Mar 2012 00:26:57 +0000 (UTC)
commit 4ee9ef4bc2a24d4c1d9300b6e410b0833b6517b7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 29 21:30:11 2012 -0500
toolbar: add gd_main_toolbar_get_mode()
I should really make this a property...
src/lib/gd-main-toolbar.c | 6 ++++++
src/lib/gd-main-toolbar.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/lib/gd-main-toolbar.c b/src/lib/gd-main-toolbar.c
index 5b35ec8..48be423 100644
--- a/src/lib/gd-main-toolbar.c
+++ b/src/lib/gd-main-toolbar.c
@@ -367,6 +367,12 @@ gd_main_toolbar_set_mode (GdMainToolbar *self,
}
}
+GdMainToolbarMode
+gd_main_toolbar_get_mode (GdMainToolbar *self)
+{
+ return self->priv->mode;
+}
+
/**
* gd_main_toolbar_set_labels:
* @self:
diff --git a/src/lib/gd-main-toolbar.h b/src/lib/gd-main-toolbar.h
index a184966..9e4e751 100644
--- a/src/lib/gd-main-toolbar.h
+++ b/src/lib/gd-main-toolbar.h
@@ -79,6 +79,7 @@ GtkWidget *gd_main_toolbar_new (void);
void gd_main_toolbar_set_mode (GdMainToolbar *self,
GdMainToolbarMode mode);
+GdMainToolbarMode gd_main_toolbar_get_mode (GdMainToolbar *self);
void gd_main_toolbar_set_labels (GdMainToolbar *self,
const gchar *primary,
const gchar *detail);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]