diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-08-18 22:39:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-08-18 22:39:43 (GMT) |
commit | 81c1646a1eb96a6291b18a5a37f87bf6805b6794 (patch) | |
tree | c5093a7f5d535b3169bcce8d3f07c071541366cc /src/gui/dialogs | |
parent | 3e9d5cedf701fd8957024f7ddf65238aea9a1eba (diff) |
Centralized the macro used to provide callbacks to GtkBuilder easily.
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/about.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/dialogs/about.c b/src/gui/dialogs/about.c index e2836e5..574c7f2 100644 --- a/src/gui/dialogs/about.c +++ b/src/gui/dialogs/about.c @@ -101,11 +101,9 @@ GtkWidget *create_about_dialog(GtkWindow *parent, GtkBuilder **outb) /* Connexion des signaux */ -#define DEFINE_CALLBACK(cb) #cb, G_CALLBACK(cb) - gtk_builder_add_callback_symbols(builder, - DEFINE_CALLBACK(close_about_window_on_escape), - DEFINE_CALLBACK(draw_black_background), + BUILDER_CALLBACK(close_about_window_on_escape), + BUILDER_CALLBACK(draw_black_background), NULL); gtk_builder_connect_signals(builder, builder); |