display: Remove duplicate/unused translations

"Normal" was translated 3 times when it only needed one,
and the translation in the .ui file weren't used at all.
This commit is contained in:
Bastien Nocera 2011-09-12 11:56:35 +01:00
parent 21c11833b5
commit 71d01174d5
2 changed files with 2 additions and 22 deletions

View file

@ -513,7 +513,7 @@ rebuild_rotation_combo (CcDisplayPanel *self)
gnome_rr_output_info_set_rotation (self->priv->current_output, current); gnome_rr_output_info_set_rotation (self->priv->current_output, current);
if (!(selection && combo_select (self->priv->rotation_combo, selection))) if (!(selection && combo_select (self->priv->rotation_combo, selection)))
combo_select (self->priv->rotation_combo, _("Normal")); combo_select (self->priv->rotation_combo, _(rotations[0].name));
} }
static int static int
@ -2590,7 +2590,7 @@ cc_display_panel_constructor (GType gtype,
CcDisplayPanel *self; CcDisplayPanel *self;
CcShell *shell; CcShell *shell;
GtkWidget *toplevel; GtkWidget *toplevel;
gchar *objects[] = {"display-panel", "rotation-liststore", NULL}; gchar *objects[] = {"display-panel", NULL};
obj = G_OBJECT_CLASS (cc_display_panel_parent_class)->constructor (gtype, n_properties, properties); obj = G_OBJECT_CLASS (cc_display_panel_parent_class)->constructor (gtype, n_properties, properties);
self = CC_DISPLAY_PANEL (obj); self = CC_DISPLAY_PANEL (obj);

View file

@ -2,26 +2,6 @@
<interface> <interface>
<requires lib="gtk+" version="2.16"/> <requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual --> <!-- interface-naming-policy toplevel-contextual -->
<object class="GtkListStore" id="rotation-liststore">
<columns>
<!-- column-name item -->
<column type="gchararray"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">Normal</col>
</row>
<row>
<col id="0" translatable="yes">Left</col>
</row>
<row>
<col id="0" translatable="yes">Right</col>
</row>
<row>
<col id="0" translatable="yes">Upside-down</col>
</row>
</data>
</object>
<object class="GtkWindow" id="window1"> <object class="GtkWindow" id="window1">
<child> <child>
<object class="GtkVBox" id="display-panel"> <object class="GtkVBox" id="display-panel">