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/daemon/daemon.c | 2 -- src/daemon/stack.c | 3 --- src/themes/coco/coco-theme.c | 5 ----- src/themes/nodoka/nodoka-theme.c | 8 -------- src/themes/standard/theme.c | 1 - 5 files changed, 19 deletions(-) (limited to 'src') diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 3b09873..37d7006 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -186,7 +186,6 @@ static void name_lost_handler_cb (GDBusConnection *connection, gtk_main_quit(); } - static void notify_daemon_constructed (GObject *object) { NotifyDaemon *daemon; @@ -1395,7 +1394,6 @@ static gboolean notify_daemon_notify_handler(NotifyDaemonNotifications *object, *XXX This needs to handle file URIs and all that. */ - #ifdef HAVE_X11 if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()) && g_variant_lookup(hints, "window-xid", "@u", &data)) diff --git a/src/daemon/stack.c b/src/daemon/stack.c index c4c3622..608436e 100644 --- a/src/daemon/stack.c +++ b/src/daemon/stack.c @@ -69,7 +69,6 @@ get_work_area (NotifyStack *stack, workarea = XInternAtom(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), "_NET_WORKAREA", True); - disp_screen = GDK_SCREEN_XNUMBER (stack->screen); /* Defaults in case of error */ @@ -81,7 +80,6 @@ get_work_area (NotifyStack *stack, if (workarea == None) return FALSE; - win = XRootWindow(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), disp_screen); result = XGetWindowProperty(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), @@ -97,7 +95,6 @@ get_work_area (NotifyStack *stack, &leftovers, &ret_workarea); - if (result != Success || type == None || format == 0 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