aboutsummaryrefslogtreecommitdiffstats
path: root/src/popup-commands.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-12-11 00:48:36 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-12-11 01:09:44 +0800
commit533c34899f09a1fa0e80aa198bd72ec2a90b1689 (patch)
treef11f94d4c0e12703cd3a1d1379ccdea6e0cbe852 /src/popup-commands.c
parente65754da16f9af433cd90279b60855705855253a (diff)
downloadgsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.tar
gsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.tar.gz
gsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.tar.bz2
gsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.tar.lz
gsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.tar.xz
gsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.tar.zst
gsoc2013-epiphany-533c34899f09a1fa0e80aa198bd72ec2a90b1689.zip
ephy-shell: remove the ephy_shell global
https://bugzilla.gnome.org/show_bug.cgi?id=683614
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r--src/popup-commands.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 03494a142..e010c2671 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -58,7 +58,8 @@ popup_cmd_link_in_new_window (GtkAction *action,
ephy_embed_event_get_property (event, "link-uri", &value);
- ephy_shell_new_tab (ephy_shell, NULL, embed,
+ ephy_shell_new_tab (ephy_shell_get_default (),
+ NULL, embed,
g_value_get_string (&value),
EPHY_NEW_TAB_OPEN_PAGE |
EPHY_NEW_TAB_IN_NEW_WINDOW);
@@ -81,7 +82,8 @@ popup_cmd_link_in_new_tab (GtkAction *action,
ephy_embed_event_get_property (event, "link-uri", &value);
- ephy_shell_new_tab (ephy_shell, window, embed,
+ ephy_shell_new_tab (ephy_shell_get_default (),
+ window, embed,
g_value_get_string (&value),
EPHY_NEW_TAB_OPEN_PAGE |
EPHY_NEW_TAB_IN_EXISTING_WINDOW |
@@ -398,7 +400,8 @@ image_open_uri (GFile *file,
if (!success)
{
- ephy_shell_new_tab (ephy_shell, NULL, NULL, remote_address,
+ ephy_shell_new_tab (ephy_shell_get_default (),
+ NULL, NULL, remote_address,
EPHY_NEW_TAB_OPEN_PAGE |
EPHY_NEW_TAB_IN_NEW_WINDOW);
}