From 52ca182ae5054c3376bc4b698f12ebfdfb28336a Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 4 Aug 2012 03:23:30 +0200 Subject: [PATCH] Use a symbolic constant for the banner duration --- src/lib-display-blanking-status-menu-widget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib-display-blanking-status-menu-widget.c b/src/lib-display-blanking-status-menu-widget.c index 7f5a489..61844ca 100644 --- a/src/lib-display-blanking-status-menu-widget.c +++ b/src/lib-display-blanking-status-menu-widget.c @@ -79,6 +79,7 @@ GType display_blanking_status_plugin_get_type (void); #define HOURS_GCONF_KEY "/apps/Maemo/sadba/timed_inhibit_hours" #define MINUTES_GCONF_KEY "/apps/Maemo/sadba/timed_inhibit_minutes" +#define BANNER_DURATION 5000 // in milliseconds #define INHIBIT_MSG_INTERVAL 30 // in seconds #define GETTEXT_DOM "status-area-displayblanking-applet" @@ -208,7 +209,7 @@ on_timed_inhibit_timeout (DisplayBlankingStatusPluginPrivate *priv) GtkWidget *banner = hildon_banner_show_information ( priv->timed_inhibit_button, NULL, _ ("Display blanking inhibition disabled")); - hildon_banner_set_timeout (HILDON_BANNER (banner), 5000); + hildon_banner_set_timeout (HILDON_BANNER (banner), BANNER_DURATION); return FALSE; } -- 2.43.0