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/project.c | |
parent | 3e9d5cedf701fd8957024f7ddf65238aea9a1eba (diff) |
Centralized the macro used to provide callbacks to GtkBuilder easily.
Diffstat (limited to 'src/gui/menus/project.c')
-rw-r--r-- | src/gui/menus/project.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/menus/project.c b/src/gui/menus/project.c index e9e690c..293af3d 100644 --- a/src/gui/menus/project.c +++ b/src/gui/menus/project.c @@ -65,10 +65,8 @@ void setup_menu_project_callbacks(GtkBuilder *builder) { GObject *item; /* Elément à compléter */ -#define DEFINE_CALLBACK(cb) #cb, G_CALLBACK(cb) - gtk_builder_add_callback_symbols(builder, - DEFINE_CALLBACK(mcb_project_add_binary_file), + BUILDER_CALLBACK(mcb_project_add_binary_file), NULL); /* Projet -> Retirer un binaire */ |