summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index be8dfa5..1d4190f 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -231,13 +231,11 @@ GtkWidget *create_editor(void)
gtk_window_set_icon_list(GTK_WINDOW(result), icons);
g_list_free_full(icons, (GDestroyNotify)g_object_unref);
-#define DEFINE_CALLBACK(cb) #cb, G_CALLBACK(cb)
-
gtk_builder_add_callback_symbols(builder,
- DEFINE_CALLBACK(on_delete_editor),
- DEFINE_CALLBACK(on_destroy_editor),
- DEFINE_CALLBACK(on_window_state_changed),
- DEFINE_CALLBACK(on_key_event),
+ BUILDER_CALLBACK(on_delete_editor),
+ BUILDER_CALLBACK(on_destroy_editor),
+ BUILDER_CALLBACK(on_window_state_changed),
+ BUILDER_CALLBACK(on_key_event),
NULL);
setup_accel_group_callbacks(builder);