[Xfce4-commits] <xfce4-notifyd:master> Remove useless temporary variable.

Jérôme Guelfucci noreply at xfce.org
Wed Nov 10 19:24:01 CET 2010


Updating branch refs/heads/master
         to c3866d82ffcf8d2019c7ab5bb5ec347695fc571e (commit)
       from 7f6ee0bf5e6213a4ca46af35e2aeb126b12bed7b (commit)

commit c3866d82ffcf8d2019c7ab5bb5ec347695fc571e
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Wed Nov 10 19:21:26 2010 +0100

    Remove useless temporary variable.

 xfce4-notifyd/xfce-notify-daemon.c |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 1c4bacf..9ce2983 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -218,12 +218,9 @@ xfce_notify_rootwin_watch_workarea(GdkXEvent *gxevent,
 
         DBG("got _NET_WORKAREA change on rootwin!");
 
-        for(j = 0; j < nmonitor; j++) {
-            GdkRectangle workarea;
-
-            xfce_notify_daemon_get_workarea(screen, j, &workarea);
-            xndaemon->monitors_workarea[screen_number][j] = workarea;
-        }
+        for(j = 0; j < nmonitor; j++)
+            xfce_notify_daemon_get_workarea(screen, j,
+                                            &(xndaemon->monitors_workarea[screen_number][j]));
     }
 
     return GDK_FILTER_CONTINUE;
@@ -287,13 +284,9 @@ xfce_notify_daemon_init(XfceNotifyDaemon *xndaemon)
         xndaemon->reserved_rectangles[i] = g_new0(GList *, nmonitor);
         xndaemon->monitors_workarea[i] = g_new0(GdkRectangle, nmonitor);
 
-        for(j = 0; j < nmonitor; j++) {
-            GdkRectangle workarea;
-
-            xfce_notify_daemon_get_workarea(screen, j, &workarea);
-
-            xndaemon->monitors_workarea[i][j] = workarea;
-        }
+        for(j = 0; j < nmonitor; j++)
+            xfce_notify_daemon_get_workarea(screen, j,
+                                            &(xndaemon->monitors_workarea[i][j]));
 
         /* Monitor root window changes */
         groot = gdk_screen_get_root_window(screen);



More information about the Xfce4-commits mailing list