[gtk/emoji-keynav: 3/5] flowbox: Remove can-focus handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/emoji-keynav: 3/5] flowbox: Remove can-focus handling
- Date: Tue, 14 Apr 2020 19:09:29 +0000 (UTC)
commit 037b0259d8425a8d320e327ef8d5ea7959981832
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 14 13:29:49 2020 -0400
flowbox: Remove can-focus handling
With the new meaning of can-focus, this doesn't make
sense anymore.
gtk/gtkflowbox.c | 11 -----------
1 file changed, 11 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 81c142318b..da379f3a8a 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -426,7 +426,6 @@ gtk_flow_box_child_class_init (GtkFlowBoxChildClass *class)
static void
gtk_flow_box_child_init (GtkFlowBoxChild *child)
{
- gtk_widget_set_can_focus (GTK_WIDGET (child), TRUE);
}
/* Public API {{{2 */
@@ -2903,12 +2902,6 @@ gtk_flow_box_focus (GtkWidget *widget,
GSequenceIter *iter;
GtkFlowBoxChild *next_focus_child;
- /* Without "can-focus" flag fall back to the default behavior immediately */
- if (!gtk_widget_get_can_focus (widget))
- {
- return GTK_WIDGET_CLASS (gtk_flow_box_parent_class)->focus (widget, direction);
- }
-
focus_child = gtk_widget_get_focus_child (widget);
next_focus_child = NULL;
@@ -3030,10 +3023,6 @@ gtk_flow_box_move_cursor (GtkFlowBox *box,
GtkAdjustment *adjustment;
gboolean vertical;
- /* Without "can-focus" flag fall back to the default behavior immediately */
- if (!gtk_widget_get_can_focus (GTK_WIDGET (box)))
- return FALSE;
-
vertical = priv->orientation == GTK_ORIENTATION_VERTICAL;
if (vertical)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]