From c6b9276aa54e8d320d0a3f480404393711463dfd Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Oct 2021 18:00:56 +0200 Subject: Use a blank line at most --- src/themes/coco/coco-theme.c | 5 ----- src/themes/nodoka/nodoka-theme.c | 8 -------- src/themes/standard/theme.c | 1 - 3 files changed, 14 deletions(-) (limited to 'src/themes') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 741861f..0913174 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -66,7 +66,6 @@ typedef struct GtkTextDirection rtl; } WindowData; - enum { URGENCY_LOW, @@ -344,8 +343,6 @@ action_clicked_cb(GtkWidget *w, GdkEventButton *event, action_cb(nw, key); } - - /* Required functions */ /* Checking if we support this notification daemon version */ @@ -452,7 +449,6 @@ create_notification(UrlClickedCb url_clicked) gtk_widget_show (vbox); gtk_box_pack_start (GTK_BOX (windata->main_hbox), vbox, TRUE, TRUE, 0); - windata->summary_label = gtk_label_new(NULL); gtk_widget_show(windata->summary_label); gtk_box_pack_start(GTK_BOX(vbox), windata->summary_label, FALSE, FALSE, 0); @@ -708,7 +704,6 @@ move_notification(GtkWidget *nw, int x, int y) gtk_window_move(GTK_WINDOW(nw), x, y); } - /* Optional Functions */ /* Destroy notification */ diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 2ad102e..3f62940 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -22,8 +22,6 @@ * Boston, MA 02110-1301 USA */ - - #include "config.h" #include @@ -82,7 +80,6 @@ typedef struct } WindowData; - enum { URGENCY_LOW, @@ -403,7 +400,6 @@ fill_background(GtkWidget *widget, WindowData *windata, cairo_t *cr) cairo_fill (cr); } - static void draw_stripe(GtkWidget *widget, WindowData *windata, cairo_t *cr) { @@ -463,7 +459,6 @@ draw_stripe(GtkWidget *widget, WindowData *windata, cairo_t *cr) break; } - cairo_pattern_t *pattern; pattern = cairo_pattern_create_linear (0, 0, 0, windata->height); cairo_pattern_add_color_stop_rgba (pattern, 0, top_color.red / color_mult, top_color.green / color_mult, top_color.blue / color_mult, alpha); @@ -697,8 +692,6 @@ action_clicked_cb(GtkWidget *w, GdkEventButton *event, action_cb(nw, key); } - - /* Required functions */ /* Checking if we support this notification daemon version */ @@ -1122,7 +1115,6 @@ move_notification(GtkWidget *nw, int x, int y) } } - /* Optional Functions */ /* Destroy notification */ diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index 968382a..c243a4f 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -664,7 +664,6 @@ GtkWindow* create_notification(UrlClickedCb url_clicked) windata->composited = FALSE; - screen = gtk_window_get_screen(GTK_WINDOW(win)); visual = gdk_screen_get_rgba_visual(screen); -- cgit v1.2.1