Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/bockbuild.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Russell <cody@jhu.edu>2019-03-06 20:58:23 +0300
committerCody Russell <cody@jhu.edu>2019-03-06 20:58:23 +0300
commitbd5582859a3ea1cca9b9d48057ad91a7260cbe67 (patch)
treeabc87cd94d1b750538a970fb4c2a00e61f4164a4
parent14535c270ea9f8d536efe6852700d8d1cb657c1f (diff)
[GTK] Update focus fixes patch.gtk-focus-fixification
-rw-r--r--packages/patches/gtk/gtk-nsview-subview-focus-fixes.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/patches/gtk/gtk-nsview-subview-focus-fixes.patch b/packages/patches/gtk/gtk-nsview-subview-focus-fixes.patch
index 74dc49a..bbf1a37 100644
--- a/packages/patches/gtk/gtk-nsview-subview-focus-fixes.patch
+++ b/packages/patches/gtk/gtk-nsview-subview-focus-fixes.patch
@@ -1,5 +1,5 @@
diff --git a/gtk/gtknsview.c b/gtk/gtknsview.c
-index a4b4dd4dbe..5b9961eb14 100644
+index a4b4dd4dbe..ebe07833fb 100644
--- a/gtk/gtknsview.c
+++ b/gtk/gtknsview.c
@@ -49,6 +49,7 @@ enum
@@ -10,7 +10,7 @@ index a4b4dd4dbe..5b9961eb14 100644
guint map_timeout;
gboolean enable_swizzle;
};
-@@ -442,15 +443,29 @@ gtk_ns_view_replace_draw_insertion_point (void)
+@@ -442,15 +443,30 @@ gtk_ns_view_replace_draw_insertion_point (void)
}
}
@@ -22,7 +22,8 @@ index a4b4dd4dbe..5b9961eb14 100644
+ }
+
+ for (NSView *subview in [view subviews]) {
-+ return does_accept_first_responder_recursively (subview);
++ if (does_accept_first_responder_recursively (subview))
++ return TRUE;
+ }
+
+ return FALSE;
@@ -42,7 +43,7 @@ index a4b4dd4dbe..5b9961eb14 100644
#if DEBUG_FOCUS
g_printerr ("%s can focus: %d\n",
-@@ -549,10 +564,12 @@ gtk_ns_view_notify (GObject *object,
+@@ -549,10 +565,12 @@ gtk_ns_view_notify (GObject *object,
gtk_widget_has_focus (GTK_WIDGET (object)));
#endif
@@ -58,7 +59,7 @@ index a4b4dd4dbe..5b9961eb14 100644
}
}
-@@ -712,7 +729,7 @@ gtk_ns_view_grab_focus (GtkWidget *widget)
+@@ -712,7 +730,7 @@ gtk_ns_view_grab_focus (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_ns_view_parent_class)->grab_focus (widget);
ns_window = [ns_view->priv->view window];
@@ -67,7 +68,7 @@ index a4b4dd4dbe..5b9961eb14 100644
}
static gboolean
-@@ -818,15 +835,20 @@ gtk_ns_view_native_child_event (GdkWindow *window,
+@@ -818,15 +836,20 @@ gtk_ns_view_native_child_event (GdkWindow *window,
if (hit &&
(hit == view ||