[pitivi] titleeditor: Remove the text span background color
- From: Jean-FranÃois Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] titleeditor: Remove the text span background color
- Date: Mon, 10 Sep 2012 20:46:24 +0000 (UTC)
commit 3dcf997fd41e03b675ccfe3c19a7e85f6bd2d090
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date: Sun Sep 2 21:23:58 2012 -0400
titleeditor: Remove the text span background color
It eats space on the toolbar, and nobody would be satisfied by
the results it creates. It's crack.
data/ui/titleeditor.ui | 26 --------------------------
pitivi/titleeditor.py | 9 +--------
2 files changed, 1 insertions(+), 34 deletions(-)
---
diff --git a/data/ui/titleeditor.ui b/data/ui/titleeditor.ui
index 95bb47f..bf393e5 100644
--- a/data/ui/titleeditor.ui
+++ b/data/ui/titleeditor.ui
@@ -240,32 +240,6 @@
</packing>
</child>
<child>
- <object class="GtkToolItem" id="font_back_color">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="has_tooltip">True</property>
- <property name="tooltip_markup" translatable="yes">Font background color</property>
- <property name="tooltip_text" translatable="yes">Font background color</property>
- <property name="use_action_appearance">False</property>
- <child>
- <object class="GtkColorButton" id="back_text_color">
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_action_appearance">False</property>
- <property name="title" translatable="yes">Pick a Font Foreground Color</property>
- <property name="color">#ffffffffffff</property>
- <signal name="color-set" handler="_backTextColorButtonCb" swapped="no"/>
- </object>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- </packing>
- </child>
- <child>
<object class="GtkToolItem" id="background_color">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index d0de278..8c04aeb 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -614,7 +614,7 @@ class TitleEditor(Loggable):
self.info_bar_create = builder.get_object("infobar1")
self.info_bar_insert = builder.get_object("infobar2")
- buttons = ["bold", "italic", "font", "font_fore_color", "font_back_color", "back_color"]
+ buttons = ["bold", "italic", "font", "font_fore_color", "back_color"]
for button in buttons:
self.bt[button] = builder.get_object(button)
settings = ["valignment", "halignment", "xpos", "ypos"]
@@ -662,13 +662,6 @@ class TitleEditor(Loggable):
tags = self.pangobuffer.get_tags_from_attrs(None, None, attrs)
self.pangobuffer.apply_tag_to_selection(tags[0])
- def _backTextColorButtonCb(self, widget):
- suc, a, t, s = Pango.parse_markup("<span background='" + widget.get_color().to_string() + "'>color</span>", -1, u'\x00')
- ai = a.get_iterator()
- font, lang, attrs = ai.get_font()
- tags = self.pangobuffer.get_tags_from_attrs(None, None, attrs)
- self.pangobuffer.apply_tag_to_selection(tags[0])
-
def _fontButtonCb(self, widget):
font_desc = widget.get_font_name().split(" ")
font_face = " ".join(font_desc[:-1])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]