Merge lp:~junrrein/pantheon-files/fix-1099164 into lp:~elementary-apps/pantheon-files/trunk

Proposed by Julián Unrrein
Status: Merged
Approved by: David Gomes
Approved revision: 1081
Merged at revision: 1082
Proposed branch: lp:~junrrein/pantheon-files/fix-1099164
Merge into: lp:~elementary-apps/pantheon-files/trunk
Diff against target: 45 lines (+3/-9)
2 files modified
src/View/ContextView.vala (+0/-1)
src/marlin-places-sidebar.c (+3/-8)
To merge this branch: bzr merge lp:~junrrein/pantheon-files/fix-1099164
Reviewer Review Type Date Requested Status
David Gomes (community) Approve
Review via email: mp+144002@code.launchpad.net

Description of the change

[Sidebar] Don't pop up a context menu when secondary-clicking over a category or blank space. Fixes bug #1099164.
Remove a duplicate include in src/View/ContextView.vala .

To post a comment you must log in.
Revision history for this message
David Gomes (davidgomes) wrote :

+1.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/View/ContextView.vala'
2--- src/View/ContextView.vala 2012-11-06 20:18:52 +0000
3+++ src/View/ContextView.vala 2013-01-19 23:29:21 +0000
4@@ -25,7 +25,6 @@
5 using Cairo;
6 using Gee;
7 using Granite.Widgets;
8-using Granite.Widgets;
9
10 namespace Marlin.View {
11
12
13=== modified file 'src/marlin-places-sidebar.c'
14--- src/marlin-places-sidebar.c 2013-01-09 09:17:37 +0000
15+++ src/marlin-places-sidebar.c 2013-01-19 23:29:21 +0000
16@@ -2540,9 +2540,6 @@
17 if (event->window != gtk_tree_view_get_bin_window (tree_view))
18 return TRUE;
19
20- if (event->button == 3) {
21- bookmarks_popup_menu (sidebar, event);
22- } else {
23 GtkTreeModel *model;
24 GtkTreePath *path;
25
26@@ -2571,16 +2568,14 @@
27 break;
28
29 case GDK_BUTTON_SECONDARY:
30- open_selected_bookmark (sidebar, model, path,
31- event->state & GDK_CONTROL_MASK ?
32- MARLIN_WINDOW_OPEN_FLAG_NEW_WINDOW :
33- MARLIN_WINDOW_OPEN_FLAG_NEW_TAB);
34+ if (path != NULL)
35+ if (!category_at_path (path))
36+ bookmarks_popup_menu (sidebar, event);
37 break;
38 }
39
40 if (path != NULL)
41 gtk_tree_path_free (path);
42- }
43
44 return FALSE;
45 }

Subscribers

People subscribed via source and target branches

to all changes: