From 48828a1977fc21c6fc6d03fa6003a081bf14b017 Mon Sep 17 00:00:00 2001 From: Peter Harvey Date: Wed, 25 Jan 2006 21:45:03 +0000 Subject: src/bookmarks/ephy-bookmarks-ui.c 2006-01-22 Peter Harvey * src/bookmarks/ephy-bookmarks-ui.c Reverted change which made 'add bookmark' and 'edit bookmark' use-cases have exactly the same dialog. --- src/bookmarks/ephy-bookmarks-ui.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmarks-ui.c b/src/bookmarks/ephy-bookmarks-ui.c index ce9e511b4..0449606b8 100644 --- a/src/bookmarks/ephy-bookmarks-ui.c +++ b/src/bookmarks/ephy-bookmarks-ui.c @@ -424,6 +424,7 @@ add_bookmark (const char *location, { EphyBookmarks *bookmarks; EphyNode *bookmark; + GtkWidget *dialog; bookmarks = ephy_shell_get_bookmarks (ephy_shell_get_default ()); bookmark = ephy_bookmarks_add (bookmarks, title, location); @@ -432,8 +433,16 @@ add_bookmark (const char *location, { properties_dialogs = g_hash_table_new (g_direct_hash, g_direct_equal); } - - ephy_bookmarks_ui_show_bookmark (bookmark); + + dialog = ephy_bookmark_properties_new (bookmarks, bookmark, TRUE); + + g_signal_connect (dialog, "destroy", + G_CALLBACK (properties_dialog_destroy_cb), bookmarks); + g_hash_table_insert (properties_dialogs, + bookmark, dialog); + + gtk_window_present_with_time (GTK_WINDOW (dialog), + gtk_get_current_event_time ()); } static void -- cgit v1.2.3