summaryrefslogtreecommitdiff
path: root/src/gui/menus/edition.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/menus/edition.c')
-rw-r--r--src/gui/menus/edition.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c
index e11a3b9..b78c084 100644
--- a/src/gui/menus/edition.c
+++ b/src/gui/menus/edition.c
@@ -40,6 +40,7 @@
#include "../../analysis/db/items/switcher.h"
#include "../../arch/operands/targetable.h"
#include "../../glibext/gbinarycursor.h"
+#include "../../gtkext/easygtk.h"
#include "../../gtkext/gtkblockdisplay.h"
#include "../../gtkext/gtkdisplaypanel.h"
#include "../../gtkext/gtkgraphdisplay.h"
@@ -98,20 +99,18 @@ void setup_menu_edition_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_edition_goto),
- DEFINE_CALLBACK(mcb_edition_switch_numeric_operand),
- DEFINE_CALLBACK(mcb_edition_go_back),
- DEFINE_CALLBACK(mcb_edition_follow_ref),
- DEFINE_CALLBACK(mcb_edition_list_xrefs),
- DEFINE_CALLBACK(mcb_edition_bookmarks_toggle),
- DEFINE_CALLBACK(mcb_edition_bookmarks_delete_all),
- DEFINE_CALLBACK(mcb_edition_comment_enter),
- DEFINE_CALLBACK(mcb_edition_comment_enter_repeatable),
- DEFINE_CALLBACK(mcb_edition_comment_enter_previous),
- DEFINE_CALLBACK(mcb_edition_comment_enter_next),
+ BUILDER_CALLBACK(mcb_edition_goto),
+ BUILDER_CALLBACK(mcb_edition_switch_numeric_operand),
+ BUILDER_CALLBACK(mcb_edition_go_back),
+ BUILDER_CALLBACK(mcb_edition_follow_ref),
+ BUILDER_CALLBACK(mcb_edition_list_xrefs),
+ BUILDER_CALLBACK(mcb_edition_bookmarks_toggle),
+ BUILDER_CALLBACK(mcb_edition_bookmarks_delete_all),
+ BUILDER_CALLBACK(mcb_edition_comment_enter),
+ BUILDER_CALLBACK(mcb_edition_comment_enter_repeatable),
+ BUILDER_CALLBACK(mcb_edition_comment_enter_previous),
+ BUILDER_CALLBACK(mcb_edition_comment_enter_next),
NULL);
/* Bascule des opérandes numériques */