N_ ("Both disabled"),
N_ ("Only dimming")
};
+static const char *mode_desc[BLANKING_MODES] =
+{
+ N_ ("Blanking and dimming always enabled"),
+ N_ ("Blanking and dimming enabled only on battery"),
+ N_ ("Always dim, blank only on battery"),
+ N_ ("Blanking and dimming always disabled"),
+ N_ ("Blanking disabled, dimming enabled")
+};
static const char *mode_icon_name[BLANKING_MODES] =
{
"display-blanking-icon.0",
{
const gchar *title = hildon_button_get_title (HILDON_BUTTON (button));
- gint *mode = (gint *) g_object_get_data (G_OBJECT(dialog), "mode");
+ gint *mode = (gint *) g_object_get_data (G_OBJECT (dialog), "mode");
g_assert (mode != NULL);
for (*mode = 0; *mode < BLANKING_MODES; (*mode)++) {
GtkWidget *button =
hildon_button_new_with_text (HILDON_SIZE_FINGER_HEIGHT,
HILDON_BUTTON_ARRANGEMENT_VERTICAL, _ (mode_title[i]),
- NULL);
+ _ (mode_desc[i]));
hildon_button_set_style (HILDON_BUTTON (button),
HILDON_BUTTON_STYLE_PICKER);
GtkWidget *icon = gtk_image_new_from_icon_name (mode_icon_name[i],
GtkWidget *b = hildon_gtk_toggle_button_new (HILDON_SIZE_FINGER_HEIGHT |
HILDON_SIZE_AUTO_WIDTH);
- gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON(b), FALSE);
+ gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE);
GtkWidget *icon = gtk_image_new_from_icon_name (icon_name,
GTK_ICON_SIZE_DIALOG);
gtk_button_set_image (GTK_BUTTON (b), icon);