aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmark-properties.c
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-06 01:04:48 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-04-06 01:04:48 +0800
commit893ec76256945916281467e8937ffa283efd7cd3 (patch)
tree264078e7c2336472e444cff675b3e2ddd4e1c587 /src/bookmarks/ephy-bookmark-properties.c
parent1d2079919896bb08fdfd2d21236c5314b21908fb (diff)
downloadgsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.tar
gsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.tar.gz
gsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.tar.bz2
gsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.tar.lz
gsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.tar.xz
gsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.tar.zst
gsoc2013-epiphany-893ec76256945916281467e8937ffa283efd7cd3.zip
Just show the new bookmark dialog, don't go modal.
2003-04-05 David Bordoley <bordoley@msu.edu> * src/popup-commands.c: (popup_cmd_bookmark_link): * src/window-commands.c: (window_cmd_file_bookmark_page): Just show the new bookmark dialog, don't go modal. * src/bookmarks/ephy-bookmark-properties.c: (ephy_bookmark_properties_new): * src/bookmarks/ephy-bookmark-properties.h Need to pass the parent window to _new(), and set the dialog transient to its parent. * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmark_properties): Pass the bme window to the ephy_bookmark_properties_new. * src/bookmarks/ephy-new-bookmark.c: (ephy_new_bookmark_response_cb): Call gtk_widget_destroy() when cancel or ok are clicked.
Diffstat (limited to 'src/bookmarks/ephy-bookmark-properties.c')
-rw-r--r--src/bookmarks/ephy-bookmark-properties.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c
index fcf1cd23e..0d1cb0c94 100644
--- a/src/bookmarks/ephy-bookmark-properties.c
+++ b/src/bookmarks/ephy-bookmark-properties.c
@@ -386,7 +386,8 @@ ephy_bookmark_properties_init (EphyBookmarkProperties *editor)
GtkWidget *
ephy_bookmark_properties_new (EphyBookmarks *bookmarks,
- EphyNode *bookmark)
+ EphyNode *bookmark,
+ GtkWindow *parent_window)
{
EphyBookmarkProperties *editor;
@@ -398,7 +399,11 @@ ephy_bookmark_properties_new (EphyBookmarks *bookmarks,
"bookmark", bookmark,
NULL));
- build_ui (editor);
-
+ build_ui (editor);
+
+ if (parent_window)
+ {
+ gtk_window_set_transient_for (GTK_WINDOW (editor), parent_window);
+ }
return GTK_WIDGET (editor);
}