[gnome-control-center] display: Add context for the rotation labels
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] display: Add context for the rotation labels
- Date: Mon, 12 Sep 2011 11:06:06 +0000 (UTC)
commit 5a5a037d09787da48f3c8b60ca5ce6dcb5ebcbf3
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 12 12:03:19 2011 +0100
display: Add context for the rotation labels
panels/display/cc-display-panel.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index ac75511..647e6e1 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -474,10 +474,10 @@ rebuild_rotation_combo (CcDisplayPanel *self)
const char * name;
} RotationInfo;
static const RotationInfo rotations[] = {
- { GNOME_RR_ROTATION_0, N_("Normal") },
- { GNOME_RR_ROTATION_90, N_("Counterclockwise") },
- { GNOME_RR_ROTATION_270, N_("Clockwise") },
- { GNOME_RR_ROTATION_180, N_("180 Degrees") },
+ { GNOME_RR_ROTATION_0, NC_("display panel, rotation", "Normal") },
+ { GNOME_RR_ROTATION_90, NC_("display panel, rotation", "Counterclockwise") },
+ { GNOME_RR_ROTATION_270, NC_("display panel, rotation", "Clockwise") },
+ { GNOME_RR_ROTATION_180, NC_("display panel, rotation", "180 Degrees") },
};
const char *selection;
GnomeRRRotation current;
@@ -513,7 +513,7 @@ rebuild_rotation_combo (CcDisplayPanel *self)
gnome_rr_output_info_set_rotation (self->priv->current_output, current);
if (!(selection && combo_select (self->priv->rotation_combo, selection)))
- combo_select (self->priv->rotation_combo, _(rotations[0].name));
+ gtk_combo_box_set_active (GTK_COMBO_BOX (self->priv->rotation_combo), 0);
}
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]