diff options
author | rbuj <[email protected]> | 2021-10-27 18:00:56 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-12-11 16:08:17 +0100 |
commit | c6b9276aa54e8d320d0a3f480404393711463dfd (patch) | |
tree | 4b945d8d5471dfc0d0338d68ef14abf339c8358b /src | |
parent | c2823eeafa140917a87fccff91dcf2967d93b393 (diff) | |
download | mate-notification-daemon-c6b9276aa54e8d320d0a3f480404393711463dfd.tar.bz2 mate-notification-daemon-c6b9276aa54e8d320d0a3f480404393711463dfd.tar.xz |
Use a blank line at most
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/daemon.c | 2 | ||||
-rw-r--r-- | src/daemon/stack.c | 3 | ||||
-rw-r--r-- | src/themes/coco/coco-theme.c | 5 | ||||
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 8 | ||||
-rw-r--r-- | src/themes/standard/theme.c | 1 |
5 files changed, 0 insertions, 19 deletions
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 <glib/gi18n.h> @@ -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); |