[gtk+] gtkplacessidebar: Don't change location if clicked on eject button
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkplacessidebar: Don't change location if clicked on eject button
- Date: Fri, 10 Oct 2014 16:18:18 +0000 (UTC)
commit 3c29212ce31683f5a572088bd825f60706eb222c
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Thu Oct 9 20:31:42 2014 +0200
gtkplacessidebar: Don't change location if clicked on eject button
Currently we change the current location if we click the eject button of
a mount.
Check whether the user actually clicked the eject button and don't
change location in that case.
https://bugzilla.gnome.org/show_bug.cgi?id=737983
gtk/gtkplacessidebar.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 259e546..3f815f9 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -3442,11 +3442,17 @@ bookmarks_row_activated_cb (GtkWidget *widget,
{
GtkTreeIter iter;
GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget));
+ GtkTreePath *dummy;
if (!gtk_tree_model_get_iter (model, &iter, path))
return;
- open_selected_bookmark (sidebar, model, &iter, 0);
+ dummy = NULL;
+ if (!clicked_eject_button (sidebar, &dummy))
+ {
+ open_selected_bookmark (sidebar, model, &iter, 0);
+ gtk_tree_path_free (dummy);
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]