aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 4ec202c77..207cdf083 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -27,6 +27,7 @@
#include "ephy-prefs.h"
#include "ephy-embed-shell.h"
#include "ephy-shell.h"
+#include "ephy-session.h"
#include "ephy-embed-prefs.h"
#include "ephy-embed-single.h"
#include "ephy-shell.h"
@@ -1090,11 +1091,13 @@ void
prefs_homepage_current_button_clicked_cb (GtkWidget *button,
EphyDialog *dialog)
{
+ EphySession *session;
EphyWindow *window;
EphyEmbed *embed;
char *location;
- window = ephy_shell_get_active_window (ephy_shell);
+ session = EPHY_SESSION (ephy_shell_get_session (ephy_shell));
+ window = ephy_session_get_active_window (session);
g_return_if_fail (window != NULL);
embed = ephy_window_get_active_embed (window);