summaryrefslogtreecommitdiff
path: root/endless/eospagemanager.h
diff options
context:
space:
mode:
authorMatt Watson <mattdangerw@gmail.com>2014-05-12 16:35:18 -0700
committerMatt Watson <mattdangerw@gmail.com>2014-05-13 12:50:02 -0700
commit396bfe04660e17d02c147488edd0c752682afecf (patch)
treef3ca112de3b227468b85ecb6cb9fbb3dafff650f /endless/eospagemanager.h
parent7a2edd48f30f1f0bd1496c69c58ca9ac0e791d49 (diff)
EosPageManager uses GtkStack properties directly
Use the visible-child and visible-child-name properties of GtkStack in lieu of visible-page and visible-page-name. Use the transition-duration, transition-type and name properties of GtkStack instead of proxying in page manager with properties of that same name. The page manger becomes nothing more than a stack with custom child properties for use in EosWindow, and becomes a lot simpler. This breaks the page manager api and will require changes in the apps as well [endlessm/eos-sdk#985]
Diffstat (limited to 'endless/eospagemanager.h')
-rw-r--r--endless/eospagemanager.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/endless/eospagemanager.h b/endless/eospagemanager.h
index e2d4a2b..38e0ac0 100644
--- a/endless/eospagemanager.h
+++ b/endless/eospagemanager.h
@@ -38,29 +38,6 @@ G_BEGIN_DECLS
typedef struct _EosPageManager EosPageManager;
typedef struct _EosPageManagerClass EosPageManagerClass;
-#define EOS_TYPE_PAGE_MANAGER_TRANSITION_TYPE (eos_page_manager_transition_type_get_type ())
-
-/**
- * EosPageManagerTransitionType:
- * @EOS_PAGE_MANAGER_TRANSITION_TYPE_NONE: No animation, regardless of duration.
- * @EOS_PAGE_MANAGER_TRANSITION_TYPE_CROSSFADE: Pages will not move, but fade into one another.
- * @EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_RIGHT: The old page will slide off to the right.
- * @EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_LEFT: The old page will slide off to the left.
- * @EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_UP: The old page will slide up the screen.
- * @EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_DOWN: The old page will slide down the screen.
- *
- * Enum values to specify the type of animation to use when transitioning
- * between pages.
- **/
-typedef enum {
- EOS_PAGE_MANAGER_TRANSITION_TYPE_NONE,
- EOS_PAGE_MANAGER_TRANSITION_TYPE_CROSSFADE,
- EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_RIGHT,
- EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_LEFT,
- EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_UP,
- EOS_PAGE_MANAGER_TRANSITION_TYPE_SLIDE_DOWN
-} EosPageManagerTransitionType;
-
/**
* EosPageManager:
*
@@ -83,35 +60,9 @@ EOS_SDK_ALL_API_VERSIONS
GType eos_page_manager_get_type (void) G_GNUC_CONST;
EOS_SDK_ALL_API_VERSIONS
-GType eos_page_manager_transition_type_get_type (void) G_GNUC_CONST;
-
-EOS_SDK_ALL_API_VERSIONS
GtkWidget *eos_page_manager_new (void);
EOS_SDK_ALL_API_VERSIONS
-GtkWidget *eos_page_manager_get_visible_page (EosPageManager *self);
-
-EOS_SDK_ALL_API_VERSIONS
-void eos_page_manager_set_visible_page (EosPageManager *self,
- GtkWidget *page);
-
-EOS_SDK_ALL_API_VERSIONS
-const gchar *eos_page_manager_get_visible_page_name (EosPageManager *self);
-
-EOS_SDK_ALL_API_VERSIONS
-void eos_page_manager_set_visible_page_name (EosPageManager *self,
- const gchar *page_name);
-
-EOS_SDK_ALL_API_VERSIONS
-const gchar *eos_page_manager_get_page_name (EosPageManager *self,
- GtkWidget *page);
-
-EOS_SDK_ALL_API_VERSIONS
-void eos_page_manager_set_page_name (EosPageManager *self,
- GtkWidget *page,
- const gchar *name);
-
-EOS_SDK_ALL_API_VERSIONS
GtkWidget *eos_page_manager_get_page_left_topbar_widget (EosPageManager *self,
GtkWidget *page);
@@ -130,20 +81,6 @@ void eos_page_manager_set_page_center_topbar_widget (EosPageManage
GtkWidget *center_topbar_widget);
EOS_SDK_ALL_API_VERSIONS
-void eos_page_manager_set_transition_duration (EosPageManager *self,
- guint duration);
-
-EOS_SDK_ALL_API_VERSIONS
-guint eos_page_manager_get_transition_duration (EosPageManager *self);
-
-EOS_SDK_ALL_API_VERSIONS
-void eos_page_manager_set_transition_type (EosPageManager *self,
- EosPageManagerTransitionType transition_type);
-
-EOS_SDK_ALL_API_VERSIONS
-EosPageManagerTransitionType eos_page_manager_get_transition_type (EosPageManager *self);
-
-EOS_SDK_ALL_API_VERSIONS
const gchar *eos_page_manager_get_page_background_uri (EosPageManager *self,
GtkWidget *page);