[gtk+/wip/matthiasc/kill-event-signals: 52/126] doc tools: Stop using gtk_true
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/kill-event-signals: 52/126] doc tools: Stop using gtk_true
- Date: Mon, 15 Jan 2018 13:04:11 +0000 (UTC)
commit b038abee2fa883622b192bb3e6aa1bba5754e97c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 31 12:17:08 2017 -0500
doc tools: Stop using gtk_true
docs/tools/widgets.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 2548fcf..33c8590 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -17,6 +17,12 @@
#define LARGE_WIDTH 240
#define LARGE_HEIGHT 240
+static gboolean
+focus_handled (void)
+{
+ return TRUE;
+}
+
static WidgetInfo *
new_widget_info (const char *name,
GtkWidget *widget,
@@ -42,7 +48,7 @@ new_widget_info (const char *name,
}
info->no_focus = TRUE;
- g_signal_connect (info->window, "focus", G_CALLBACK (gtk_true), NULL);
+ g_signal_connect (info->window, "focus", G_CALLBACK (focus_handled), NULL);
switch (size)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]