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/menus/options.c | |
parent | 3e9d5cedf701fd8957024f7ddf65238aea9a1eba (diff) |
Centralized the macro used to provide callbacks to GtkBuilder easily.
Diffstat (limited to 'src/gui/menus/options.c')
-rw-r--r-- | src/gui/menus/options.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/menus/options.c b/src/gui/menus/options.c index 0f5d1a2..acb275c 100644 --- a/src/gui/menus/options.c +++ b/src/gui/menus/options.c @@ -33,6 +33,7 @@ #include "../core/global.h" #include "../dialogs/identity.h" #include "../dialogs/preferences.h" +#include "../../gtkext/easygtk.h" @@ -58,12 +59,9 @@ static void mcb_options_identity(GtkMenuItem *, gpointer); void setup_menu_options_callbacks(GtkBuilder *builder) { - -#define DEFINE_CALLBACK(cb) #cb, G_CALLBACK(cb) - gtk_builder_add_callback_symbols(builder, - DEFINE_CALLBACK(mcb_options_preferences), - DEFINE_CALLBACK(mcb_options_identity), + BUILDER_CALLBACK(mcb_options_preferences), + BUILDER_CALLBACK(mcb_options_identity), NULL); } |