summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-11-29 14:57:19 -0800
committerCorey Berla <corey@berla.me>2022-11-29 20:52:46 -0800
commit63a655e345dd4fdcd742d217f77bcae10671dbf6 (patch)
treec17cf04188433d579ac2dca8075c38e52eb7f185
parent75454adbe2bf59902d839d9c5781db6ebc415c4d (diff)
downloadgtk+-63a655e345dd4fdcd742d217f77bcae10671dbf6.tar.gz
treeexpander: Fix typo and GestureClick type
"canceled" should be "cancelled". Also, "cancel" is a signal on GtkGesture.
-rw-r--r--gtk/gtktreeexpander.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktreeexpander.c b/gtk/gtktreeexpander.c
index e06557d07f..cde27a330d 100644
--- a/gtk/gtktreeexpander.c
+++ b/gtk/gtktreeexpander.c
@@ -150,9 +150,9 @@ gtk_tree_expander_click_gesture_released (GtkGestureClick *gesture,
}
static void
-gtk_tree_expander_click_gesture_canceled (GtkGestureClick *gesture,
- GdkEventSequence *sequence,
- gpointer unused)
+gtk_tree_expander_click_gesture_cancelled (GtkGesture *gesture,
+ GdkEventSequence *sequence,
+ gpointer unused)
{
gtk_widget_unset_state_flags (gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture)),
GTK_STATE_FLAG_ACTIVE);
@@ -207,7 +207,7 @@ gtk_tree_expander_update_for_list_row (GtkTreeExpander *self)
g_signal_connect (gesture, "released",
G_CALLBACK (gtk_tree_expander_click_gesture_released), NULL);
g_signal_connect (gesture, "cancel",
- G_CALLBACK (gtk_tree_expander_click_gesture_canceled), NULL);
+ G_CALLBACK (gtk_tree_expander_click_gesture_cancelled), NULL);
gtk_widget_add_controller (self->expander_icon, GTK_EVENT_CONTROLLER (gesture));
gtk_widget_insert_before (self->expander_icon,