diff options
author | infirit <[email protected]> | 2014-11-25 21:47:29 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-26 18:13:43 +0100 |
commit | b66cea481c1ab534f741362f5127bdacca363fd0 (patch) | |
tree | 67e1564d1495506349203396c102fe00893fef47 /stickynotes | |
parent | 48cd1a27c0fa01ecc35cc745827da315c266ec94 (diff) | |
download | mate-applets-b66cea481c1ab534f741362f5127bdacca363fd0.tar.bz2 mate-applets-b66cea481c1ab534f741362f5127bdacca363fd0.tar.xz |
stickynotes: Fix compile warnings
Based on gnome-applets commit: 18e23a490529131d17c931247481cfa02b1f14b3
From: Benjamin Otte <[email protected]>
Diffstat (limited to 'stickynotes')
-rw-r--r-- | stickynotes/stickynotes_applet.c | 2 | ||||
-rw-r--r-- | stickynotes/stickynotes_applet_callbacks.c | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c index c9209e13..2b2bb21c 100644 --- a/stickynotes/stickynotes_applet.c +++ b/stickynotes/stickynotes_applet.c @@ -136,8 +136,6 @@ stickynotes_make_prelight_icon (GdkPixbuf *dest, GdkPixbuf *src, int shift) void stickynotes_applet_init (MatePanelApplet *mate_panel_applet) { - int timeout; - stickynotes = g_new(StickyNotes, 1); stickynotes->notes = NULL; diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index 038509eb..b3ddcf02 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -137,8 +137,6 @@ gboolean applet_cross_cb(GtkWidget *widget, GdkEventCrossing *event, StickyNotes /* Applet Callback : On focus (in or out) of the applet. */ gboolean applet_focus_cb(GtkWidget *widget, GdkEventFocus *event, StickyNotesApplet *applet) { - applet->prelighted = event->in; - stickynotes_applet_update_icon(applet); return FALSE; @@ -179,10 +177,10 @@ void install_check_click_on_desktop (void) { /* Looks like the atoms are there */ Atom actual_type; - int actual_format; - long nitems; - long bytes; Window *data; + int actual_format; + gulong nitems; + gulong bytes; /* We only use this extra property if the actual user-time property's missing */ int status = XGetWindowProperty(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), desktop_window, user_time, |