From caf2e12de3009c40061fd1a3598ca819065481d6 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 26 Oct 2021 22:32:44 +0200 Subject: Remove extra whitespaces on #ifdef..#endif code block --- libmenu/matemenu-tree.c | 6 +++--- libmenu/menu-util.h | 21 ++++++++++----------- 2 files changed, 13 insertions(+), 14 deletions(-) (limited to 'libmenu') diff --git a/libmenu/matemenu-tree.c b/libmenu/matemenu-tree.c index 88d933d..1c93d5a 100644 --- a/libmenu/matemenu-tree.c +++ b/libmenu/matemenu-tree.c @@ -658,7 +658,7 @@ matemenu_tree_finalize (GObject *object) tree); g_object_unref (tree->settings); -# endif /* WITH_COLLECTION */ +#endif /* WITH_COLLECTION */ G_OBJECT_CLASS (matemenu_tree_parent_class)->finalize (object); } @@ -740,7 +740,7 @@ collection_applet_changed (GSettings *settings, get_panel_collection_applet (self); g_idle_add (emit_changed_signal, (gpointer)self); } -# endif /* WITH_COLLECTION */ +#endif /* WITH_COLLECTION */ static void matemenu_tree_init (MateMenuTree *self) @@ -753,7 +753,7 @@ matemenu_tree_init (MateMenuTree *self) g_signal_connect (self->settings, "changed::object-id-list", G_CALLBACK (collection_applet_changed), self); -# endif /* WITH_COLLECTION */ +#endif /* WITH_COLLECTION */ } static void diff --git a/libmenu/menu-util.h b/libmenu/menu-util.h index b41e459..ea50f71 100644 --- a/libmenu/menu-util.h +++ b/libmenu/menu-util.h @@ -32,21 +32,20 @@ G_BEGIN_DECLS #ifdef G_ENABLE_DEBUG - void menu_verbose(const char* format, ...) G_GNUC_PRINTF(1, 2); - - void menu_debug_print_layout(MenuLayoutNode* node, gboolean onelevel); +void menu_verbose(const char* format, ...) G_GNUC_PRINTF(1, 2); +void menu_debug_print_layout(MenuLayoutNode* node, gboolean onelevel); #else /* !defined(G_ENABLE_DEBUG) */ - #ifdef G_HAVE_ISO_VARARGS - #define menu_verbose(...) - #elif defined(G_HAVE_GNUC_VARARGS) - #define menu_verbose(format...) - #else - #error "Cannot disable verbose mode due to lack of varargs macros" - #endif +#ifdef G_HAVE_ISO_VARARGS +#define menu_verbose(...) +#elif defined(G_HAVE_GNUC_VARARGS) +#define menu_verbose(format...) +#else +#error "Cannot disable verbose mode due to lack of varargs macros" +#endif - #define menu_debug_print_layout(n, o) +#define menu_debug_print_layout(n, o) #endif /* G_ENABLE_DEBUG */ -- cgit v1.2.1