GNOME Bugzilla – Bug 542653
[tabs] open tab on button release
Last modified: 2012-09-05 14:10:45 UTC
Currently, opening tabs by middle clicking on sidebar items activates on button press, but it should be button release.
Issue confirmed it's just the items on the sidebar the toolbar is fine.
Created attachment 223538 [details] [review] Act on sidebar items on button release not button down This allows one to change your mind and is consistent with other actions.
Review of attachment 223538 [details] [review]: Looks good overall ::: src/nautilus-places-sidebar.c @@ +2818,1 @@ + if (!res || path == NULL || !gtk_tree_model_get_iter (model, &iter, path)) { This is probably in the original code as well, but AFAICS in case gtk_tree_model_get_iter() fails, we leak path. Can you split this check into two and free path too when get_iter() fails?
Review of attachment 223538 [details] [review]: ::: src/nautilus-places-sidebar.c @@ +2818,1 @@ + if (!res || path == NULL || !gtk_tree_model_get_iter (model, &iter, path)) { Ugh yeah I copy and pasted that. This is one reason I hate the style of putting things with side-effects in conditions.
Created attachment 223541 [details] [review] Act on sidebar items on button release not button down This allows one to change your mind and is consistent with other actions.
Review of attachment 223541 [details] [review]: Thanks, looks good now.