From 52cdd6df6cb561a48032358b3eedce16cfa2c9fb Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 16 Jan 2012 20:11:40 +0100 Subject: Refactor GtkActions with attached EphyWindows Make a GtkAction subclass that only holds an EphyWindow and nothing else, and use it throughout. Allows us to kill some duplicated code. --- src/ephy-navigation-history-action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ephy-navigation-history-action.c') diff --git a/src/ephy-navigation-history-action.c b/src/ephy-navigation-history-action.c index cac0735cf..1fdf937aa 100644 --- a/src/ephy-navigation-history-action.c +++ b/src/ephy-navigation-history-action.c @@ -56,7 +56,7 @@ enum { static void ephy_navigation_history_action_init (EphyNavigationHistoryAction *action); static void ephy_navigation_history_action_class_init (EphyNavigationHistoryActionClass *klass); -G_DEFINE_TYPE (EphyNavigationHistoryAction, ephy_navigation_history_action, EPHY_TYPE_NAVIGATION_ACTION) +G_DEFINE_TYPE (EphyNavigationHistoryAction, ephy_navigation_history_action, EPHY_TYPE_LINK_ACTION) static void ephy_history_cleared_cb (EphyHistory *history, @@ -74,7 +74,7 @@ action_activate (GtkAction *action) WebKitWebView *web_view; history_action = EPHY_NAVIGATION_HISTORY_ACTION (action); - window = _ephy_navigation_action_get_window (EPHY_NAVIGATION_ACTION (action)); + window = ephy_window_action_get_window (EPHY_WINDOW_ACTION (action)); embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); -- cgit