summaryrefslogtreecommitdiff
path: root/src/gui/agroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/agroup.c')
-rw-r--r--src/gui/agroup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/agroup.c b/src/gui/agroup.c
index 435f005..98952f0 100644
--- a/src/gui/agroup.c
+++ b/src/gui/agroup.c
@@ -28,6 +28,9 @@
#include <stdbool.h>
+#include "../gtkext/easygtk.h"
+
+
/* Détermine si un élément graphique peut être actionné. */
static gboolean enable_accel_all_the_time(GtkWidget *, guint, gpointer);
@@ -55,12 +58,9 @@ static bool _entry_focused = false;
void setup_accel_group_callbacks(GtkBuilder *builder)
{
-
-#define DEFINE_CALLBACK(cb) #cb, G_CALLBACK(cb)
-
gtk_builder_add_callback_symbols(builder,
- DEFINE_CALLBACK(enable_accel_all_the_time),
- DEFINE_CALLBACK(enable_accel_with_care),
+ BUILDER_CALLBACK(enable_accel_all_the_time),
+ BUILDER_CALLBACK(enable_accel_with_care),
NULL);
}