[gnome-control-center/gnome-3-2] display: Remove duplicate/unused translations



commit f4ecce6955440fd99ca7c6783c90be1673f6da18
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 12 11:56:35 2011 +0100

    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.

 panels/display/cc-display-panel.c |    4 ++--
 panels/display/display-capplet.ui |   20 --------------------
 2 files changed, 2 insertions(+), 22 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 217224f..ac75511 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -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, _("Normal"));
+    combo_select (self->priv->rotation_combo, _(rotations[0].name));
 }
 
 static int
@@ -2590,7 +2590,7 @@ cc_display_panel_constructor (GType                  gtype,
   CcDisplayPanel *self;
   CcShell *shell;
   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);
   self = CC_DISPLAY_PANEL (obj);
diff --git a/panels/display/display-capplet.ui b/panels/display/display-capplet.ui
index 2533e10..e60e467 100644
--- a/panels/display/display-capplet.ui
+++ b/panels/display/display-capplet.ui
@@ -2,26 +2,6 @@
 <interface>
   <requires lib="gtk+" version="2.16"/>
   <!-- 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">
     <child>
       <object class="GtkVBox" id="display-panel">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]