Merge lp:~evfool/midori/lp1286153 into lp:midori

Proposed by Robert Roth
Status: Merged
Approved by: Paweł Forysiuk
Approved revision: 6599
Merged at revision: 6631
Proposed branch: lp:~evfool/midori/lp1286153
Merge into: lp:midori
Diff against target: 71 lines (+15/-4)
1 file modified
midori/midori-browser.c (+15/-4)
To merge this branch: bzr merge lp:~evfool/midori/lp1286153
Reviewer Review Type Date Requested Status
Paweł Forysiuk Approve
Cris Dywan Needs Fixing
frenchy82 (community) testing Approve
Review via email: mp+211024@code.launchpad.net

Commit message

Fix bookmarkbar bookmark click not opening links

Description of the change

Fix bookmarksbar bookmark click not opening links, most probably because of another recent bugfix [1] for bug #1184716.

The problem was that although the activate-item signal is deprecated, it's still used in katze-arrayaction, and the signal is not handled in midori-browser.

[1] https://code.launchpad.net/~aauzi/midori/fix-1184716/+merge/188200

To post a comment you must log in.
Revision history for this message
frenchy82 (cartes) wrote :

Test ok for me.

review: Approve (testing)
Revision history for this message
Cris Dywan (kalikiana) wrote :

How about adding a gboolean return value to midori_browser_open_bookmark?

review: Needs Fixing
lp:~evfool/midori/lp1286153 updated
6599. By Robert Roth

Return gboolean from midori_browser_open_bookmark (lp:1286153)

Revision history for this message
Robert Roth (evfool) wrote :

Branch update as requested (hopefully I understood what you meant).

Revision history for this message
Paweł Forysiuk (tuxator) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'midori/midori-browser.c'
2--- midori/midori-browser.c 2014-03-16 22:37:47 +0000
3+++ midori/midori-browser.c 2014-03-23 20:37:42 +0000
4@@ -165,7 +165,7 @@
5 GValue* value,
6 GParamSpec* pspec);
7
8-void
9+gboolean
10 midori_browser_open_bookmark (MidoriBrowser* browser,
11 KatzeItem* item);
12
13@@ -3022,6 +3022,14 @@
14 MidoriBrowser* browser);
15
16 static gboolean
17+midori_bookmarkbar_activate_item (GtkAction* action,
18+ KatzeItem* item,
19+ MidoriBrowser* browser)
20+{
21+ return midori_browser_open_bookmark (browser, item);;
22+}
23+
24+static gboolean
25 midori_bookmarkbar_activate_item_alt (GtkAction* action,
26 KatzeItem* item,
27 GtkWidget* proxy,
28@@ -3041,7 +3049,7 @@
29 }
30 else if (event->button == 1)
31 {
32- midori_browser_open_bookmark (browser, item);
33+ midori_bookmarkbar_activate_item (action, item, browser);
34 }
35
36 return TRUE;
37@@ -3099,7 +3107,7 @@
38 return TRUE;
39 }
40
41-/* static */ void
42+/* static */ gboolean
43 midori_browser_open_bookmark (MidoriBrowser* browser,
44 KatzeItem* item)
45 {
46@@ -3107,7 +3115,7 @@
47 gchar* uri_fixed;
48
49 if (!(uri && *uri))
50- return;
51+ return FALSE;
52
53 /* Imported bookmarks may lack a protocol */
54 uri_fixed = sokoke_magic_uri (uri, TRUE, FALSE);
55@@ -3122,6 +3130,7 @@
56 gtk_widget_grab_focus (midori_browser_get_current_tab (browser));
57 }
58 g_free (uri_fixed);
59+ return TRUE;
60 }
61
62 static void
63@@ -5914,6 +5923,8 @@
64 _action_bookmarks_populate_folder, browser,
65 "signal::activate-item-alt",
66 midori_bookmarkbar_activate_item_alt, browser,
67+ "signal::activate-item",
68+ midori_bookmarkbar_activate_item, browser,
69 NULL);
70 gtk_action_group_add_action_with_accel (browser->action_group, action, "");
71 g_object_unref (action);

Subscribers

People subscribed via source and target branches

to all changes: