From d18e431e7379126662f45fb2648d40f21e84e021 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 25 Nov 2014 22:32:51 +0100 Subject: stickynotes: Small fixes for warnings etc --- stickynotes/stickynotes.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'stickynotes') diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 2a2cad17..b2b9e855 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -54,7 +54,10 @@ set_icon_geometry (GdkWindow *window, int height) { gulong data[4]; - Display *dpy = gdk_x11_display_get_xdisplay (gdk_window_get_display (window)); + Display *dpy; + + dpy = gdk_x11_display_get_xdisplay (gdk_window_get_display (window)); + data[0] = x; data[1] = y; data[2] = width; @@ -96,7 +99,7 @@ buffer_changed (GtkTextBuffer *buffer, StickyNote *note) /* Create a new (empty) Sticky Note at a specific position and with specific size */ -StickyNote * +static StickyNote * stickynote_new_aux (GdkScreen *screen, gint x, gint y, gint w, gint h) { StickyNote *note; @@ -476,8 +479,9 @@ stickynote_set_color (StickyNote *note, if (color_str_actual) { /* Custom colors */ GdkColor colors[6]; +#if !GTK_CHECK_VERSION (3, 0, 0) gboolean success[6]; - +#endif /* Make 4 shades of the color, getting darker from the * original, plus black and white */ -- cgit v1.2.1