summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-25 22:32:51 +0100
committerinfirit <[email protected]>2014-11-26 18:13:43 +0100
commitd18e431e7379126662f45fb2648d40f21e84e021 (patch)
treedd79f2e438b98b6a0d602d4a86d5109d2997bc73
parenta65f9460af5bf6a0172a59553aa9bd346b961b80 (diff)
downloadmate-applets-d18e431e7379126662f45fb2648d40f21e84e021.tar.bz2
mate-applets-d18e431e7379126662f45fb2648d40f21e84e021.tar.xz
stickynotes: Small fixes for warnings etc
-rw-r--r--stickynotes/stickynotes.c10
1 files changed, 7 insertions, 3 deletions
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 */