diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-28 20:28:43 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-28 20:28:43 +0800 |
commit | 180c09f50c3e0ff6cedd601ca60b02c7d5d4922a (patch) | |
tree | bd3d3310f0a4b3b5983f3c90e5e5e35cb1af69c9 /src/ephy-shell.c | |
parent | 87df5c2a8c41c2574f63131d97fee96615dc495c (diff) | |
download | gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.tar gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.tar.gz gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.tar.bz2 gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.tar.lz gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.tar.xz gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.tar.zst gsoc2013-epiphany-180c09f50c3e0ff6cedd601ca60b02c7d5d4922a.zip |
Actually pass a parent to history/bookmarks window, where to open the url.
2003-04-28 Marco Pesenti Gritti <marco@it.gnome.org>
* src/ephy-automation.c:
(impl_ephy_automation_open_bookmarks_editor):
* src/ephy-shell.c: (ephy_shell_show_bookmarks_editor),
(ephy_shell_show_history_window):
* src/ephy-shell.h:
* src/window-commands.c: (window_cmd_go_bookmarks),
(window_cmd_go_history):
Actually pass a parent to history/bookmarks window, where
to open the url. Bad who regressed this ;)
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 1e4bed077..04ac7eb6e 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -688,7 +688,8 @@ bookmarks_hide_cb (GtkWidget *widget, gpointer data) } void -ephy_shell_show_bookmarks_editor (EphyShell *gs) +ephy_shell_show_bookmarks_editor (EphyShell *gs, + GtkWidget *parent) { EphyBookmarks *bookmarks; @@ -707,6 +708,12 @@ ephy_shell_show_bookmarks_editor (EphyShell *gs) g_object_ref (ephy_shell); } + if (parent) + { + ephy_bookmarks_editor_set_parent + (EPHY_BOOKMARKS_EDITOR (gs->priv->bme), parent); + } + gtk_window_present (GTK_WINDOW (gs->priv->bme)); } @@ -718,7 +725,8 @@ history_window_hide_cb (GtkWidget *widget, gpointer data) } void -ephy_shell_show_history_window (EphyShell *gs) +ephy_shell_show_history_window (EphyShell *gs, + GtkWidget *parent) { EphyHistory *history; @@ -738,6 +746,12 @@ ephy_shell_show_history_window (EphyShell *gs) g_object_ref (ephy_shell); } + if (parent) + { + ephy_history_window_set_parent + (EPHY_HISTORY_WINDOW (gs->priv->history_window), parent); + } + gtk_window_present (GTK_WINDOW (gs->priv->history_window)); } |