[balsa/wip/gtk4: 17/351] 1
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4: 17/351] 1
- Date: Wed, 23 May 2018 21:18:22 +0000 (UTC)
commit 61f1c1984b24a27897daa5163a63e3d66328e7a8
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Oct 4 23:28:46 2017 -0400
1
src/balsa-mblist.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index e3d88ac..4acf862 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -874,7 +874,7 @@ bmbl_select_mailbox(GtkTreeSelection * selection, gpointer data)
gdouble x_win, y_win;
gint tx, ty;
- if (!event) {
+ if (event == NULL) {
GtkTreeIter iter;
if (gtk_tree_selection_get_selected(selection, NULL, &iter)) {
@@ -894,6 +894,7 @@ bmbl_select_mailbox(GtkTreeSelection * selection, gpointer data)
g_signal_handlers_unblock_by_func(selection, bmbl_select_mailbox, NULL);
return;
}
+
if (gdk_event_get_event_type(event) != GDK_BUTTON_PRESS
/* keyboard navigation */
|| !(gdk_event_get_button(event, &button) && button == 1)
@@ -903,9 +904,9 @@ bmbl_select_mailbox(GtkTreeSelection * selection, gpointer data)
return;
}
- gtk_tree_view_convert_widget_to_bin_window_coords(tree_view,
- (gint) x_win, (gint) y_win,
- &tx, &ty);
+ gtk_tree_view_convert_widget_to_tree_coords(tree_view,
+ (gint) x_win, (gint) y_win,
+ &tx, &ty);
if (!gtk_tree_view_get_path_at_pos(tree_view, tx, ty, &path, NULL, NULL, NULL)) {
/* GtkTreeView selects the first node in the tree when the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]