aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2012-01-18 04:15:22 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2012-01-20 07:46:29 +0800
commit1d566cf039d77514d57f458dbb5942199db4480e (patch)
treedb769439f92629c169ca7eb9c7e24dbd2b7bb01c /src/ephy-shell.c
parent2dfb8e7976d83847c3a6b0c515f273f507d9162c (diff)
downloadgsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.tar
gsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.tar.gz
gsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.tar.bz2
gsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.tar.lz
gsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.tar.xz
gsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.tar.zst
gsoc2013-epiphany-1d566cf039d77514d57f458dbb5942199db4480e.zip
ephy-shell: pass active window to the about dialog
So it can be modal. https://bugzilla.gnome.org/show_bug.cgi?id=668113
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 40d2f7286..8a29994c2 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -225,7 +225,13 @@ show_about (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
{
- window_cmd_help_about (NULL, NULL);
+ EphySession *session;
+ EphyWindow *window;
+
+ session = EPHY_SESSION (ephy_shell_get_session (ephy_shell));
+ window = ephy_session_get_active_window (session);
+
+ window_cmd_help_about (NULL, GTK_WIDGET (window));
}
static void