aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-navigation-action.h
diff options
context:
space:
mode:
authorMario Sanchez Prada <msanchez@igalia.com>2010-04-07 23:19:25 +0800
committerXan Lopez <xan@gnome.org>2010-04-20 21:07:58 +0800
commitede59b054c4af72cc41108db8aedafbcae1996de (patch)
tree3a5581d41025e4687777d376d53c4de490ebe5a3 /src/ephy-navigation-action.h
parent384588b86e68ea692a8f99db86b45ca0cc54f804 (diff)
downloadgsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.tar
gsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.tar.gz
gsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.tar.bz2
gsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.tar.lz
gsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.tar.xz
gsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.tar.zst
gsoc2013-epiphany-ede59b054c4af72cc41108db8aedafbcae1996de.zip
Split EphyNavigationAction in one abstract class and two subclasses
To ease understanding and further modification of the two different usages for the EphyNavigationAction class (Back/Forward and Up buttons), all the code there was split so the common one is kept in the superclass, delegating the more specific parts in the implementations of the subclasses: History (back/forward) and Up buttons. Also updated usage of this class in EphyToolbar. Bug #539716 Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'src/ephy-navigation-action.h')
-rw-r--r--src/ephy-navigation-action.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/ephy-navigation-action.h b/src/ephy-navigation-action.h
index cac5cb995..d3f3cbfc4 100644
--- a/src/ephy-navigation-action.h
+++ b/src/ephy-navigation-action.h
@@ -26,6 +26,7 @@
#define EPHY_NAVIGATION_ACTION_H
#include "ephy-link-action.h"
+#include "ephy-window.h"
G_BEGIN_DECLS
@@ -40,17 +41,10 @@ typedef struct _EphyNavigationAction EphyNavigationAction;
typedef struct _EphyNavigationActionPrivate EphyNavigationActionPrivate;
typedef struct _EphyNavigationActionClass EphyNavigationActionClass;
-typedef enum
-{
- EPHY_NAVIGATION_DIRECTION_UP,
- EPHY_NAVIGATION_DIRECTION_BACK,
- EPHY_NAVIGATION_DIRECTION_FORWARD
-} EphyNavigationDirection;
-
struct _EphyNavigationAction
{
EphyLinkAction parent;
-
+
/*< private >*/
EphyNavigationActionPrivate *priv;
};
@@ -58,10 +52,21 @@ struct _EphyNavigationAction
struct _EphyNavigationActionClass
{
EphyLinkActionClass parent_class;
+
+ /*< virtual >*/
+ GtkWidget *(*build_dropdown_menu) (EphyNavigationAction *action);
};
GType ephy_navigation_action_get_type (void);
+/*< Protected >*/
+
+EphyWindow *_ephy_navigation_action_get_window (EphyNavigationAction *action);
+
+guint _ephy_navigation_action_get_statusbar_context_id (EphyNavigationAction *action);
+
+GtkWidget *_ephy_navigation_action_new_history_menu_item (const char *origtext,
+ const char *address);
G_END_DECLS
#endif