[gnome-applets] stickynotes: remove unused variables
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] stickynotes: remove unused variables
- Date: Thu, 26 Mar 2015 14:07:48 +0000 (UTC)
commit cc64645b75b0a6c67f832709d38d2d947dddb476
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Mar 26 15:17:42 2015 +0200
stickynotes: remove unused variables
stickynotes/stickynotes_applet.c | 10 ----------
stickynotes/stickynotes_applet_callbacks.c | 4 ++--
2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index 93bb1a5..0cbe755 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -512,20 +512,10 @@ stickynotes_applet_update_prefs (void)
void stickynotes_applet_update_menus(void)
{
GList *l;
- gboolean inconsistent = FALSE;
gboolean locked = g_settings_get_boolean (stickynotes->settings, KEY_LOCKED);
gboolean locked_writable = g_settings_is_writable (stickynotes->settings, KEY_LOCKED);
- for (l = stickynotes->notes; l != NULL; l = l->next) {
- StickyNote *note = l->data;
- if (note->locked != locked) {
- inconsistent = TRUE;
-
- break;
- }
- }
-
for (l = stickynotes->applets; l != NULL; l = l->next) {
StickyNotesApplet *applet = l->data;
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c
index f555cfe..ae70da1 100644
--- a/stickynotes/stickynotes_applet_callbacks.c
+++ b/stickynotes/stickynotes_applet_callbacks.c
@@ -179,13 +179,13 @@ void install_check_click_on_desktop (void)
Window *data;
/* We only use this extra property if the actual user-time property's missing */
- int status = XGetWindowProperty( GDK_DISPLAY_XDISPLAY(gdk_window_get_display(window)),
desktop_window, user_time,
+ XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_window_get_display (window)), desktop_window,
user_time,
0, 4, False, AnyPropertyType, &actual_type, &actual_format,
&nitems, &bytes, (unsigned char **)&data );
if (actual_type == None)
{
/* No user-time property, so look for the user-time-window */
- status = XGetWindowProperty( GDK_DISPLAY_XDISPLAY(gdk_window_get_display(window)),
desktop_window, user_time_window,
+ XGetWindowProperty (GDK_DISPLAY_XDISPLAY (gdk_window_get_display (window)),
desktop_window, user_time_window,
0, 4, False, AnyPropertyType, &actual_type, &actual_format,
&nitems, &bytes, (unsigned char **)&data );
if (actual_type != None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]