summaryrefslogtreecommitdiff
path: root/gtk/gtkflowbox.c
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2016-12-16 23:40:21 +0100
committerDebarshi Ray <debarshir@gnome.org>2016-12-19 15:07:53 +0100
commit9791641d4369a216a915ae8aa7c23acdb697ad02 (patch)
tree07c26d105758709e2775344d87cdf0540aaf611f /gtk/gtkflowbox.c
parent4a7e7c00c102b12aa51ff817982e13f18b89311c (diff)
downloadgtk+-9791641d4369a216a915ae8aa7c23acdb697ad02.tar.gz
flowbox: Rename gtk_flow_box_find_child_at_pos for consistency
... with gtk_list_box_get_row_at_y. It would be nice to avoid the 'find' versus 'get' discrepancy since we are planning to expose it as public API. https://bugzilla.gnome.org/show_bug.cgi?id=776187
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r--gtk/gtkflowbox.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 66535af4e1..c7bd3290d7 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -857,9 +857,9 @@ get_visible_children (GtkFlowBox *box)
}
static GtkFlowBoxChild *
-gtk_flow_box_find_child_at_pos (GtkFlowBox *box,
- gint x,
- gint y)
+gtk_flow_box_get_child_at_pos (GtkFlowBox *box,
+ gint x,
+ gint y)
{
GtkWidget *child;
GSequenceIter *iter;
@@ -2743,7 +2743,7 @@ autoscroll_cb (GtkWidget *widget,
sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (priv->drag_gesture));
gtk_gesture_get_point (priv->drag_gesture, sequence, &x, &y);
- child = gtk_flow_box_find_child_at_pos (box, x, y);
+ child = gtk_flow_box_get_child_at_pos (box, x, y);
gtk_flow_box_update_active (box, child);
@@ -2846,7 +2846,7 @@ gtk_flow_box_enter_notify_event (GtkWidget *widget,
if (event->window != gtk_widget_get_window (GTK_WIDGET (box)))
return FALSE;
- child = gtk_flow_box_find_child_at_pos (box, event->x, event->y);
+ child = gtk_flow_box_get_child_at_pos (box, event->x, event->y);
gtk_flow_box_update_active (box, child);
return FALSE;
@@ -2865,7 +2865,7 @@ gtk_flow_box_leave_notify_event (GtkWidget *widget,
if (event->detail != GDK_NOTIFY_INFERIOR)
child = NULL;
else
- child = gtk_flow_box_find_child_at_pos (box, event->x, event->y);
+ child = gtk_flow_box_get_child_at_pos (box, event->x, event->y);
gtk_flow_box_update_active (box, child);
@@ -2889,7 +2889,7 @@ gtk_flow_box_drag_gesture_update (GtkGestureDrag *gesture,
(offset_x * offset_x) + (offset_y * offset_y) > RUBBERBAND_START_DISTANCE * RUBBERBAND_START_DISTANCE)
{
priv->rubberband_select = TRUE;
- priv->rubberband_first = gtk_flow_box_find_child_at_pos (box, start_x, start_y);
+ priv->rubberband_first = gtk_flow_box_get_child_at_pos (box, start_x, start_y);
widget_node = gtk_widget_get_css_node (GTK_WIDGET (box));
priv->rubberband_node = gtk_css_node_new ();
@@ -2905,7 +2905,7 @@ gtk_flow_box_drag_gesture_update (GtkGestureDrag *gesture,
if (priv->rubberband_select)
{
- child = gtk_flow_box_find_child_at_pos (box, start_x + offset_x,
+ child = gtk_flow_box_get_child_at_pos (box, start_x + offset_x,
start_y + offset_y);
if (priv->rubberband_first == NULL)
@@ -2946,7 +2946,7 @@ gtk_flow_box_motion_notify_event (GtkWidget *widget,
event_window = gdk_window_get_parent (event_window);
}
- child = gtk_flow_box_find_child_at_pos (box, relative_x, relative_y);
+ child = gtk_flow_box_get_child_at_pos (box, relative_x, relative_y);
gtk_flow_box_update_active (box, child);
return GTK_WIDGET_CLASS (gtk_flow_box_parent_class)->motion_notify_event (widget, event);
@@ -2962,7 +2962,7 @@ gtk_flow_box_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
GtkFlowBoxChild *child;
- child = gtk_flow_box_find_child_at_pos (box, x, y);
+ child = gtk_flow_box_get_child_at_pos (box, x, y);
if (child == NULL)
return;