aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-history-window.c
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-26 00:31:05 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-04-26 00:31:05 +0800
commite22d66b927f60c384f96c47aa5d4519ceb4f9c47 (patch)
tree0390a6dcd3e6e35385c310f2bf9058c40894f113 /src/ephy-history-window.c
parent98f768009939e3b06f2777ccb4307245f0637f36 (diff)
downloadgsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.tar
gsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.tar.gz
gsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.tar.bz2
gsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.tar.lz
gsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.tar.xz
gsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.tar.zst
gsoc2013-epiphany-e22d66b927f60c384f96c47aa5d4519ceb4f9c47.zip
Hookup to the response signal instead of using gtk_dialog_run. Prevents us
2003-04-25 David Bordoley <bordoley@msu.edu> * src/ephy-history-window.c: (cmd_bookmark_page): * src/popup-commands.c: (popup_cmd_bookmark_link): * src/window-commands.c: (window_cmd_file_bookmark_page): Hookup to the response signal instead of using gtk_dialog_run. Prevents us from going modal. * src/bookmarks/ephy-new-bookmark.c: (response_cb), (ephy_new_bookmark_response_cb): * src/bookmarks/ephy-new-bookmark.h Add a convenience callback function, that callers can use to destroy the dialog after a response. * src/ephy-shell.c: (ephy_shell_command_cb): Use a callback to the gtk_widget_destroy on the "response" signal instead of using gtk_dialog_run. eg. don't go modal. Some code cleanups too.
Diffstat (limited to 'src/ephy-history-window.c')
-rw-r--r--src/ephy-history-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index dcbaf2e89..cb6fc9a27 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -378,8 +378,10 @@ cmd_bookmark_page (EggAction *action,
(bookmarks, window, location);
ephy_new_bookmark_set_title
(EPHY_NEW_BOOKMARK (new_bookmark), title);
- gtk_dialog_run (GTK_DIALOG (new_bookmark));
- gtk_widget_destroy (new_bookmark);
+ g_signal_connect (G_OBJECT (new_bookmark), "response",
+ G_CALLBACK (ephy_new_bookmark_response_cb),
+ NULL);
+ gtk_widget_show (new_bookmark);
}
g_list_free (selection);
}