From bc8ceebef7530b767e9e454f3c5cd6e1749675bd Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Mon, 25 Oct 2021 16:49:23 +0200 Subject: Add clang-format configuration, clean up --- src/ld-window-main.c | 2 +- src/ld-window-main.h | 21 ++++++++++----------- src/logdiag.c | 1 - 3 files changed, 11 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/ld-window-main.c b/src/ld-window-main.c index 4977508..af603f8 100644 --- a/src/ld-window-main.c +++ b/src/ld-window-main.c @@ -182,7 +182,7 @@ static GtkActionEntry wm_action_entries[] = G_CALLBACK (on_action_user_guide)}, {"About", GTK_STOCK_ABOUT, N_("_About"), NULL, N_("Show a dialog about this application"), - G_CALLBACK (on_action_about)} + G_CALLBACK (on_action_about)}, }; static GtkToggleActionEntry wm_toggle_action_entries[] = diff --git a/src/ld-window-main.h b/src/ld-window-main.h index 6e3ca32..d96b15d 100644 --- a/src/ld-window-main.h +++ b/src/ld-window-main.h @@ -15,16 +15,16 @@ G_BEGIN_DECLS #define LD_TYPE_WINDOW_MAIN (ld_window_main_get_type ()) -#define LD_WINDOW_MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST \ - ((obj), LD_TYPE_WINDOW_MAIN, LdWindowMain)) -#define LD_WINDOW_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST \ - ((klass), LD_TYPE_WINDOW_MAIN, LdWindowMainClass)) -#define LD_IS_WINDOW_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE \ - ((obj), LD_TYPE_WINDOW_MAIN)) -#define LD_IS_WINDOW_MAIN_CLASS(klass) (G_TYPE_CHECK_INSTANCE_TYPE \ - ((klass), LD_TYPE_WINDOW_MAIN)) -#define LD_WINDOW_MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS \ - ((obj), LD_WINDOW_MAIN, LdWindowMainClass)) +#define LD_WINDOW_MAIN(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), LD_TYPE_WINDOW_MAIN, LdWindowMain)) +#define LD_WINDOW_MAIN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), LD_TYPE_WINDOW_MAIN, LdWindowMainClass)) +#define LD_IS_WINDOW_MAIN(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LD_TYPE_WINDOW_MAIN)) +#define LD_IS_WINDOW_MAIN_CLASS(klass) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((klass), LD_TYPE_WINDOW_MAIN)) +#define LD_WINDOW_MAIN_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), LD_WINDOW_MAIN, LdWindowMainClass)) typedef struct _LdWindowMain LdWindowMain; typedef struct _LdWindowMainPrivate LdWindowMainPrivate; @@ -53,4 +53,3 @@ GtkWidget *ld_window_main_new (const gchar *filename); G_END_DECLS #endif /* ! __LD_WINDOW_MAIN_H__ */ - diff --git a/src/logdiag.c b/src/logdiag.c index 50720c2..8c52d40 100644 --- a/src/logdiag.c +++ b/src/logdiag.c @@ -175,4 +175,3 @@ main (int argc, char *argv[]) gtk_main (); return 0; } - -- cgit v1.2.3-70-g09d2