aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EventContext.cpp4
-rw-r--r--src/popup-commands.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f96f8d1d..a5c382fef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-22 Marco Pesenti Gritti <marco@it.gnome.org>
+
+ * src/popup-commands.c: (popup_cmd_bookmark_link):
+
+ Fix add bookmark from link
+
2003-06-22 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed-single.cpp:
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 5d8e30075..4f518875f 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -365,6 +365,10 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget,
}
}
}
+ else
+ {
+ SetIntProperty ("link_is_smart", FALSE);
+ }
#ifdef NOT_PORTED
/* Get the text of the link */
info->linktext = mozilla_get_link_text (node);
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 1b2c4d68a..4d37e4e23 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -162,7 +162,7 @@ popup_cmd_bookmark_link (EggAction *action,
{
new_bookmark = ephy_new_bookmark_new
(bookmarks, GTK_WINDOW (window),
- rel ? rel : location);
+ is_smart ? rel : location);
ephy_new_bookmark_set_title
(EPHY_NEW_BOOKMARK (new_bookmark), title);
gtk_widget_show (new_bookmark);