aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-04-06 01:52:17 +0800
committerChristian Persch <chpe@src.gnome.org>2004-04-06 01:52:17 +0800
commitebf8b6c7da6a87fab932f7120906fb125921141f (patch)
treeb49d0d1af64259171cbc5dd879de49da8a30aab4 /src
parent1e1e94d9b0843c3c1aa99cbfcdf94c4dff4e6b07 (diff)
downloadgsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.tar
gsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.tar.gz
gsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.tar.bz2
gsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.tar.lz
gsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.tar.xz
gsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.tar.zst
gsoc2013-epiphany-ebf8b6c7da6a87fab932f7120906fb125921141f.zip
Make prefs, pdm and print setup dialogues transient to their parent. Fixes
2004-04-05 Christian Persch <chpe@cvs.gnome.org> * data/glade/prefs-dialog.glade: * lib/ephy-dialog.c: (ephy_dialog_get_parent): * lib/ephy-dialog.h: * src/prefs-dialog.c: (prefs_homepage_current_button_clicked_cb): * src/window-commands.c: (window_cmd_file_print_setup), (window_cmd_edit_personal_data), (window_cmd_edit_prefs): Make prefs, pdm and print setup dialogues transient to their parent. Fixes bug #139124.
Diffstat (limited to 'src')
-rw-r--r--src/prefs-dialog.c10
-rw-r--r--src/window-commands.c3
2 files changed, 7 insertions, 6 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 1261c57f1..b47ae561f 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -1256,16 +1256,14 @@ void
prefs_homepage_current_button_clicked_cb (GtkWidget *button,
EphyDialog *dialog)
{
- EphySession *session;
- EphyWindow *window;
+ GtkWidget *parent;
EphyEmbed *embed;
char *location;
- session = EPHY_SESSION (ephy_shell_get_session (ephy_shell));
- window = ephy_session_get_active_window (session);
- g_return_if_fail (window != NULL);
+ parent = ephy_dialog_get_parent (dialog);
+ g_return_if_fail (parent != NULL);
- embed = ephy_window_get_active_embed (window);
+ embed = ephy_window_get_active_embed (EPHY_WINDOW (parent));
g_return_if_fail (embed != NULL);
location = ephy_embed_get_location (embed, TRUE);
diff --git a/src/window-commands.c b/src/window-commands.c
index 6883d9592..946f080fa 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -76,6 +76,7 @@ window_cmd_file_print_setup (GtkAction *action,
EphyDialog *dialog;
dialog = EPHY_DIALOG (ephy_shell_get_print_setup_dialog (ephy_shell));
+ ephy_dialog_set_parent (dialog, GTK_WIDGET (window));
ephy_dialog_show (dialog);
}
@@ -785,6 +786,7 @@ window_cmd_edit_personal_data (GtkAction *action,
EphyDialog *dialog;
dialog = EPHY_DIALOG (ephy_shell_get_pdm_dialog (ephy_shell));
+ ephy_dialog_set_parent (dialog, GTK_WIDGET (window));
ephy_dialog_show (dialog);
}
@@ -796,6 +798,7 @@ window_cmd_edit_prefs (GtkAction *action,
EphyDialog *dialog;
dialog = EPHY_DIALOG (ephy_shell_get_prefs_dialog (ephy_shell));
+ ephy_dialog_set_parent (dialog, GTK_WIDGET (window));
ephy_dialog_show (dialog);
}