Merge lp:~intelomkar/ubuntu/saucy/nemo/nemo-1.8.4-1 into lp:ubuntu/saucy/nemo

Proposed by Omkarnath
Status: Needs review
Proposed branch: lp:~intelomkar/ubuntu/saucy/nemo/nemo-1.8.4-1
Merge into: lp:ubuntu/saucy/nemo
Diff against target: 37 lines (+5/-2)
3 files modified
src/nemo-window-menus.c (+1/-1)
src/nemo-window-menus.h (+2/-0)
src/nemo-window-pane.c (+2/-1)
To merge this branch: bzr merge lp:~intelomkar/ubuntu/saucy/nemo/nemo-1.8.4-1
Reviewer Review Type Date Requested Status
Marc Deslauriers Needs Fixing
Review via email: mp+215954@code.launchpad.net

Description of the change

fixed an issue that would cause Nemo to get into not responding state.

steps to reproduce:
At any point when location bar is in breadcrumbs mode, press CTRL+L to
switch to text mode.
Press ESC to revert back to breadcrumbs mode.
Try to switch mode again using Toggle button right next to breadcrumbs.
Nemo should be in non-responding mode.
(there is one infinite loop running at back due to inconsistency)

fix:
navigation_bar_cancel_callback was calling nemo_toolbar_set_show_location_entry
which in turns changes toolbar to breadcrumbs mode. Changed it to call
toggle_location_entry_setting instead. This sets the mode and takes care
of other things like saving preferences too.

This issue is only present in official packages which are older versions.
I found newer versions have moved on to much different approach.

To post a comment you must log in.
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Looks like this is the upstream patch that fixes that issue:

https://github.com/linuxmint/nemo/commit/fc13deb6f398a32f223951ce1ffcd9af1a8c5d6b

Could you give it a try, and update your merge request with the upstream fix?

Thanks.

review: Needs Fixing
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Also, the nemo package uses a patch system, so you need to actually submit a merge request with a proper patch and an updated changelog entry.

See the following for more information:
https://wiki.ubuntu.com/UbuntuDevelopment#Packaging

Unmerged revisions

7. By Omkarnath

fixed an issue that would cause Nemo to get into not responding state.

If user presses Esc key while location_entry is focused, it would revert
it back to breadcrumbs, however state of toggle button is not inverted.
clicking on toggle button again would cause Nemo to get in not responding
state.

navigation_bar_cancel_callback was calling nemo_toolbar_set_show_location_entry
which in turns changes toolbar to breadcrumbs mode. Changed it to call
toggle_location_entry_setting instead.

This should also take of saving the preferences when user presses Esc to
get back to breadcrumbs mode.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/nemo-window-menus.c'
2--- src/nemo-window-menus.c 2013-05-09 23:16:08 +0000
3+++ src/nemo-window-menus.c 2014-04-15 20:51:07 +0000
4@@ -774,7 +774,7 @@
5
6 void action_toggle_location_entry_callback (GtkToggleAction *action, gpointer user_data);
7
8-static void
9+void
10 toggle_location_entry_setting (NemoWindow *window,
11 NemoWindowPane *pane,
12 gboolean from_accel_or_menu)
13
14=== modified file 'src/nemo-window-menus.h'
15--- src/nemo-window-menus.h 2013-03-22 15:54:12 +0000
16+++ src/nemo-window-menus.h 2014-04-15 20:51:07 +0000
17@@ -32,4 +32,6 @@
18 guint toolbar_action_for_view_id (const char *view_id );
19 void toolbar_set_view_button (guint action_id, NemoWindowPane *pane);
20
21+void toggle_location_entry_setting (NemoWindow *window, NemoWindowPane *pane, gboolean from_accel_or_menu);
22+
23 #endif /* NEMO_WINDOW_PANE_H */
24
25=== modified file 'src/nemo-window-pane.c'
26--- src/nemo-window-pane.c 2013-03-22 15:54:12 +0000
27+++ src/nemo-window-pane.c 2014-04-15 20:51:07 +0000
28@@ -243,7 +243,8 @@
29 navigation_bar_cancel_callback (GtkWidget *widget,
30 NemoWindowPane *pane)
31 {
32- nemo_toolbar_set_show_location_entry (NEMO_TOOLBAR (pane->tool_bar), FALSE);
33+ NemoWindow *window = pane->window;
34+ toggle_location_entry_setting(window, pane, FALSE);
35
36 nemo_window_pane_hide_temporary_bars (pane);
37 restore_focus_widget (pane);

Subscribers

People subscribed via source and target branches

to all changes: