diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-11-01 22:00:06 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-11-01 22:00:06 +0800 |
commit | f686d272ac4558e0ebda8f3aa873d2d9eefb17b5 (patch) | |
tree | a1acf44a816af5c379c39df916735dc2882fb1d1 /src/bookmarks/ephy-bookmark-properties.c | |
parent | a716fbc5466f2f33a094062745f2d07b60df340d (diff) | |
download | gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.tar gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.tar.gz gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.tar.bz2 gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.tar.lz gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.tar.xz gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.tar.zst gsoc2013-epiphany-f686d272ac4558e0ebda8f3aa873d2d9eefb17b5.zip |
Make sure there's only one bookmark properties dialogue for each bookmark.
2004-11-01 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmark-action.c: (properties_activate_cb),
(bookmark_destroy_cb), (ephy_bookmark_action_finalize):
* src/bookmarks/ephy-bookmark-properties.c:
(ephy_bookmark_properties_new):
* src/bookmarks/ephy-bookmark-properties.h:
* src/bookmarks/ephy-bookmarks-editor.c: (show_properties_dialog),
(ephy_bookmarks_editor_finalize), (ephy_bookmarks_editor_init):
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init),
(ephy_bookmarks_finalize), (ephy_bookmarks_add_keyword),
(prop_dialog_destroy_cb), (bookmark_destroyed_cb),
(ephy_bookmarks_show_bookmark_properties):
* src/bookmarks/ephy-bookmarks.h:
Make sure there's only one bookmark properties dialogue for each
bookmark. Fixes bug #148398 and also bug #155880.
Diffstat (limited to 'src/bookmarks/ephy-bookmark-properties.c')
-rw-r--r-- | src/bookmarks/ephy-bookmark-properties.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c index 51b15b454..878faa8e1 100644 --- a/src/bookmarks/ephy-bookmark-properties.c +++ b/src/bookmarks/ephy-bookmark-properties.c @@ -430,7 +430,7 @@ ephy_bookmark_properties_init (EphyBookmarkProperties *editor) GtkWidget * ephy_bookmark_properties_new (EphyBookmarks *bookmarks, EphyNode *bookmark, - GtkWindow *parent_window) + GtkWidget *parent_window) { EphyBookmarkProperties *editor; @@ -446,7 +446,9 @@ ephy_bookmark_properties_new (EphyBookmarks *bookmarks, if (parent_window) { - gtk_window_set_transient_for (GTK_WINDOW (editor), parent_window); + gtk_window_set_transient_for (GTK_WINDOW (editor), + GTK_WINDOW (parent_window)); + gtk_window_set_destroy_with_parent (GTK_WINDOW (editor), TRUE); } return GTK_WIDGET (editor); } |