[nautilus] list-view: Add else to the on_star check
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-view: Add else to the on_star check
- Date: Wed, 28 Feb 2018 17:15:15 +0000 (UTC)
commit 681ed80107b82c2e3deb9e44da002b6157b4facb
Author: Alexandru Fazakas <alex fazakas97 yahoo com>
Date: Wed Feb 28 12:58:10 2018 +0200
list-view: Add else to the on_star check
Both cases can't happen subsequently, so we should only go
one route of the tho.
This is a follow-up to this merge request:
https://gitlab.gnome.org/GNOME/nautilus/merge_requests/111
src/nautilus-list-view.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 41fe79654..4433d3616 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -640,7 +640,7 @@ button_press_callback (GtkWidget *widget,
{
on_star_cell_renderer_clicked (path, view);
}
- if (event->type == GDK_2BUTTON_PRESS && !on_star)
+ else if (event->type == GDK_2BUTTON_PRESS && !on_star)
{
/* Double clicking does not trigger a D&D action. */
view->details->drag_button = 0;
@@ -718,7 +718,7 @@ button_press_callback (GtkWidget *widget,
}
}
else
- {
+ {
gtk_tree_selection_select_path (selection, path);
}
selected_rows = gtk_tree_selection_get_selected_rows (selection, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]