[pitivi] titleeditor: Remove the Underline button



commit 30bbfd650679e381c8e8830a87157e4331be3008
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Sun Sep 2 21:20:59 2012 -0400

    titleeditor: Remove the Underline button
    
    Underlining is a prehistoric typographical artifact from a time
    when boldface did not exist, and it eats space on the toolbar.

 data/ui/titleeditor.ui |   28 ----------------------------
 pitivi/titleeditor.py  |    3 +--
 2 files changed, 1 insertions(+), 30 deletions(-)
---
diff --git a/data/ui/titleeditor.ui b/data/ui/titleeditor.ui
index 722322b..95bb47f 100644
--- a/data/ui/titleeditor.ui
+++ b/data/ui/titleeditor.ui
@@ -190,34 +190,6 @@
               </packing>
             </child>
             <child>
-              <object class="GtkToggleToolButton" id="underline">
-                <property name="use_action_appearance">False</property>
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="tooltip_text" translatable="yes">Underline</property>
-                <property name="use_action_appearance">False</property>
-                <property name="label" translatable="yes">Underline</property>
-                <property name="use_underline">True</property>
-                <property name="stock_id">gtk-underline</property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="homogeneous">True</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkSeparatorToolItem" id="toolbutton1">
-                <property name="use_action_appearance">False</property>
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="use_action_appearance">False</property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="homogeneous">True</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkToolItem" id="font">
                 <property name="use_action_appearance">False</property>
                 <property name="visible">True</property>
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index b224341..d0de278 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -602,7 +602,6 @@ class TitleEditor(Loggable):
         #Connect buttons
         self.pangobuffer.setup_widget_from_pango(self.bt["bold"], "<b>bold</b>")
         self.pangobuffer.setup_widget_from_pango(self.bt["italic"], "<i>italic</i>")
-        self.pangobuffer.setup_widget_from_pango(self.bt["underline"], "<u>underline</u>")
 
     def _createUI(self):
         builder = Gtk.Builder()
@@ -614,8 +613,8 @@ class TitleEditor(Loggable):
         self.markup_button = builder.get_object("markupToggle")
         self.info_bar_create = builder.get_object("infobar1")
         self.info_bar_insert = builder.get_object("infobar2")
-        buttons = ["bold", "italic", "underline", "font", "font_fore_color", "font_back_color", "back_color"]
 
+        buttons = ["bold", "italic", "font", "font_fore_color", "font_back_color", "back_color"]
         for button in buttons:
             self.bt[button] = builder.get_object(button)
         settings = ["valignment", "halignment", "xpos", "ypos"]



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