[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e351948667 2/2: Make native input work on GTK 2
From: |
Po Lu |
Subject: |
master e351948667 2/2: Make native input work on GTK 2 |
Date: |
Tue, 11 Jan 2022 05:13:43 -0500 (EST) |
branch: master
commit e35194866706e5632db3070f4e32950ecc0a58f4
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Make native input work on GTK 2
* src/gtkutil.c (xg_create_frame_widgets): Allow focusing fixed
widget.
---
src/gtkutil.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 3550a56e29..1db166b1ba 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1608,6 +1608,7 @@ xg_create_frame_widgets (struct frame *f)
/* Must use g_strdup because gtk_widget_modify_style does g_free. */
style->bg_pixmap_name[GTK_STATE_NORMAL] = g_strdup ("<none>");
gtk_widget_modify_style (wfixed, style);
+ gtk_widget_set_can_focus (wfixed, TRUE);
#else
gtk_widget_set_can_focus (wfixed, TRUE);
#ifdef HAVE_PGTK