summaryrefslogtreecommitdiff
path: root/src/gui/menus/view.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-08-18 22:39:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-08-18 22:39:43 (GMT)
commit81c1646a1eb96a6291b18a5a37f87bf6805b6794 (patch)
treec5093a7f5d535b3169bcce8d3f07c071541366cc /src/gui/menus/view.c
parent3e9d5cedf701fd8957024f7ddf65238aea9a1eba (diff)
Centralized the macro used to provide callbacks to GtkBuilder easily.
Diffstat (limited to 'src/gui/menus/view.c')
-rw-r--r--src/gui/menus/view.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/menus/view.c b/src/gui/menus/view.c
index b778f8c..d41df92 100644
--- a/src/gui/menus/view.c
+++ b/src/gui/menus/view.c
@@ -93,14 +93,12 @@ void setup_menu_view_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_view_update_side_panels_list),
- DEFINE_CALLBACK(mcb_view_switch_to_next_support),
- DEFINE_CALLBACK(mcb_view_switch_to_prev_support),
- DEFINE_CALLBACK(mcb_view_zoom),
- DEFINE_CALLBACK(mcb_view_show_full_screen),
+ BUILDER_CALLBACK(mcb_view_update_side_panels_list),
+ BUILDER_CALLBACK(mcb_view_switch_to_next_support),
+ BUILDER_CALLBACK(mcb_view_switch_to_prev_support),
+ BUILDER_CALLBACK(mcb_view_zoom),
+ BUILDER_CALLBACK(mcb_view_show_full_screen),
NULL);
/* Affichage -> Panneaux latéraux */