[gnome-software: 20/22] src: Move an unused #define




commit 862c23131e1d991fb56b7eac83667340c623ce1a
Author: Phaedrus Leeds <mwleeds endlessos org>
Date:   Wed Feb 17 20:40:36 2021 -0800

    src: Move an unused #define

 src/gs-featured-carousel.c | 6 +++---
 src/gs-overview-page.c     | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gs-featured-carousel.c b/src/gs-featured-carousel.c
index 42a399a29..3148c9659 100644
--- a/src/gs-featured-carousel.c
+++ b/src/gs-featured-carousel.c
@@ -35,6 +35,8 @@
 #include "gs-feature-tile.h"
 #include "gs-featured-carousel.h"
 
+#define FEATURED_ROTATE_TIME                   15 /* seconds */
+
 struct _GsFeaturedCarousel
 {
        GtkBox           parent_instance;
@@ -107,10 +109,8 @@ rotate_cb (gpointer user_data)
 static void
 start_rotation_timer (GsFeaturedCarousel *self)
 {
-       const guint rotation_period_seconds = 15;
-
        if (self->rotation_timer_id == 0) {
-               self->rotation_timer_id = g_timeout_add_seconds (rotation_period_seconds,
+               self->rotation_timer_id = g_timeout_add_seconds (FEATURED_ROTATE_TIME,
                                                                 rotate_cb, self);
        }
 }
diff --git a/src/gs-overview-page.c b/src/gs-overview-page.c
index cfefdd6d4..95f65cb8c 100644
--- a/src/gs-overview-page.c
+++ b/src/gs-overview-page.c
@@ -23,7 +23,6 @@
 #include "gs-common.h"
 
 #define N_TILES                                        9
-#define FEATURED_ROTATE_TIME                   30 /* seconds */
 
 typedef struct
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]