[Xfce4-commits] [apps/xfce4-screensaver] 01/01: cpplint fixes

noreply at xfce.org noreply at xfce.org
Mon Mar 11 04:36:51 CET 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 5b122bbb1f85c58d494a1540ca12e49bc68127bd
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sun Mar 10 23:35:16 2019 -0400

    cpplint fixes
---
 src/gs-debug.c         |  4 ++--
 src/gs-listener-dbus.c |  2 +-
 src/gs-listener-x11.c  |  2 +-
 src/gs-lock-plug.c     |  1 -
 src/gs-manager.c       | 15 ++-------------
 5 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/src/gs-debug.c b/src/gs-debug.c
index a2d691c..3e28280 100644
--- a/src/gs-debug.c
+++ b/src/gs-debug.c
@@ -67,8 +67,8 @@ gs_debug_real (const char *func,
 
     gettimeofday(&tv, NULL);
     millisec = lrint(tv.tv_usec/1000.0);
-    if (millisec>=1000) {
-        millisec -=1000;
+    if (millisec >= 1000) {
+        millisec -= 1000;
         tv.tv_sec++;
     }
 
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index a0aa27d..6f5d1aa 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -1495,7 +1495,7 @@ listener_dbus_handle_system_message (DBusConnection *connection,
                 g_signal_emit (listener, signals[LOCK], 0);
             } else {
                 gs_debug ("Logind requested session unlock");
-                //FIXME: there is no signal to request password prompt
+                // FIXME: there is no signal to request password prompt
                 g_signal_emit (listener, signals[SHOW_MESSAGE], 0, NULL, NULL, NULL);
             }
 
diff --git a/src/gs-listener-x11.c b/src/gs-listener-x11.c
index 816a57e..8839204 100644
--- a/src/gs-listener-x11.c
+++ b/src/gs-listener-x11.c
@@ -162,7 +162,7 @@ gs_listener_x11_set_timeout (GSListenerX11 *listener,
     Display *display = gdk_x11_display_get_xdisplay(gdk_display_get_default());
 
     /* set X server timeouts and disable screen blanking */
-    XSetScreenSaver(display, timeout * 60, timeout * 60, 0,0);
+    XSetScreenSaver(display, timeout * 60, timeout * 60, 0, 0);
     listener->priv->timeout = timeout * 60;
     gs_debug("Screensaver timeout updated to %i minutes", timeout);
 }
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index f4b14fb..b54dea0 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -715,7 +715,6 @@ gs_lock_plug_set_monitor_index (GSLockPlug *plug,
 
     plug->priv->monitor_index = monitor_index;
     g_object_notify (G_OBJECT (plug), "monitor-index");
-
 }
 
 static void
diff --git a/src/gs-manager.c b/src/gs-manager.c
index 08bd0a9..a3164e5 100644
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -1019,13 +1019,6 @@ gs_manager_class_init (GSManagerClass *klass) {
 }
 
 static void
-on_bg_changed (XfceBG    *bg,
-               GSManager *manager) {
-    // TODO: cleanup unused code
-    // gs_debug ("background changed");
-}
-
-static void
 gs_manager_init (GSManager *manager) {
     manager->priv = gs_manager_get_instance_private (manager);
 
@@ -1035,11 +1028,6 @@ gs_manager_init (GSManager *manager) {
 
     manager->priv->bg = xfce_bg_new ();
 
-    g_signal_connect (manager->priv->bg,
-                      "changed",
-                      G_CALLBACK (on_bg_changed),
-                      manager);
-
     xfce_bg_load_from_preferences (manager->priv->bg, NULL);
 
     add_deepsleep_idle(manager);
@@ -1501,7 +1489,8 @@ gs_manager_create_window_for_monitor (GSManager  *manager,
 static gboolean
 gs_manager_is_real_monitor (GdkMonitor *monitor) {
     // avoiding some weird gdk bug
-    // federico> avb: or if you don't care about a little unexplained messiness, just discard monitors where both fields are null? :)
+    // federico> avb: or if you don't care about a little unexplained messiness,
+    //                just discard monitors where both fields are null? :)
     if (gdk_monitor_get_manufacturer(monitor) == NULL && gdk_monitor_get_model(monitor) == NULL)
         return FALSE;
     return TRUE;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list