From dd9c3fd501d8e8ae5875479264cc0eeb3c90d2aa Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 30 Jul 2012 18:17:51 +0200 Subject: [PATCH] Rename variable to improve code readability --- src/lib-display-blanking-status-menu-widget.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib-display-blanking-status-menu-widget.c b/src/lib-display-blanking-status-menu-widget.c index fc02eb2..f054111 100644 --- a/src/lib-display-blanking-status-menu-widget.c +++ b/src/lib-display-blanking-status-menu-widget.c @@ -87,7 +87,7 @@ GType display_blanking_status_plugin_get_type (void); // Undocumented blanking modes as reported by David Weinehall from Nokia: // http://www.gossamer-threads.com/lists/maemo/developers/61201#61201 #define BLANKING_MODES 5 -static const char *_DisplayBlankingDescription[BLANKING_MODES] = +static const char *mode_title[BLANKING_MODES] = { gettext_noop ("Both enabled"), gettext_noop ("Both only on battery"), @@ -408,7 +408,7 @@ on_mode_dialog_button_clicked (GtkWidget *button, GtkDialog *dialog) g_assert (mode != NULL); for (*mode = 0; *mode < BLANKING_MODES; (*mode)++) { - if (strcmp (title, _DisplayBlankingDescription[*mode]) == 0) + if (strcmp (title, mode_title[*mode]) == 0) break; } g_assert (*mode < BLANKING_MODES); @@ -444,8 +444,7 @@ mode_get_input (DisplayBlankingStatusPluginPrivate *priv) GtkWidget *button = hildon_button_new_with_text (HILDON_SIZE_FINGER_HEIGHT, HILDON_BUTTON_ARRANGEMENT_VERTICAL, - dgettext (GETTEXT_DOM, (_DisplayBlankingDescription[i])), - NULL); + dgettext (GETTEXT_DOM, (mode_title[i])), NULL); hildon_button_set_style (HILDON_BUTTON (button), HILDON_BUTTON_STYLE_PICKER); GtkWidget *icon = gtk_image_new_from_icon_name (mode_icon_name[i], -- 2.43.0