Skip to content

Commit 74a6873

Browse files
committed
Fix incorrect emit of 'move-cursor' on GtkTreeView
1 parent 859be73 commit 74a6873

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ To be released
2020
* GtkShortCutsWindow is now used for displaying hotkeys, new hotkey is Ctrl-?
2121
(Lars Windolf)
2222

23+
* Fixes incorrectly emitting "move-cursor" signal in GtkTreeView
24+
(Lars Windolf)
25+
2326

2427
2025-08-20 Lars Windolf <lars.windolf@gmx.de>
2528

src/ui/ui_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ ui_common_setup_combo_text (GtkComboBox *combo, gint col)
6060
void
6161
ui_common_treeview_move_cursor (GtkTreeView *treeview, gint step)
6262
{
63-
gboolean ret;
63+
gboolean unused;
6464

6565
gtk_widget_grab_focus (GTK_WIDGET (treeview));
66-
g_signal_emit_by_name (treeview, "move-cursor", GTK_MOVEMENT_DISPLAY_LINES, step, &ret);
66+
g_signal_emit_by_name (treeview, "move-cursor", GTK_MOVEMENT_DISPLAY_LINES, step, FALSE /* extend selection */, FALSE /* modify selection */, &unused);
6767
}
6868

6969
void

0 commit comments

Comments
 (0)