[meld] ui.msgarea: Remove WrapLabel and its use; height-for-width works now
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] ui.msgarea: Remove WrapLabel and its use; height-for-width works now
- Date: Sat, 22 Apr 2017 23:36:06 +0000 (UTC)
commit c87e6ce4c6d796234dac397fd37d73c4118a7987
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 23 08:44:32 2017 +1000
ui.msgarea: Remove WrapLabel and its use; height-for-width works now
The WrapLabel widget only really existed to get around GTK+ 2's lack of
height-for-width geometry, so there's no reason to keep using it.
meld/ui/msgarea.py | 5 +--
meld/ui/wraplabel.py | 67 --------------------------------------------------
2 files changed, 2 insertions(+), 70 deletions(-)
---
diff --git a/meld/ui/msgarea.py b/meld/ui/msgarea.py
index 631378c..9e93272 100644
--- a/meld/ui/msgarea.py
+++ b/meld/ui/msgarea.py
@@ -22,7 +22,6 @@
from gi.repository import Gtk
from meld.conf import _
-from meld.ui.wraplabel import WrapLabel
def layout_text_and_icon(stockid, primary_text, secondary_text=None):
@@ -39,7 +38,7 @@ def layout_text_and_icon(stockid, primary_text, secondary_text=None):
hbox_content.pack_start(vbox, True, True, 0)
primary_markup = "<b>%s</b>" % (primary_text,)
- primary_label = WrapLabel(primary_markup)
+ primary_label = Gtk.Label(primary_markup)
primary_label.show()
vbox.pack_start(primary_label, True, True, 0)
primary_label.set_use_markup(True)
@@ -50,7 +49,7 @@ def layout_text_and_icon(stockid, primary_text, secondary_text=None):
if secondary_text:
secondary_markup = "<small>%s</small>" % (secondary_text,)
- secondary_label = WrapLabel(secondary_markup)
+ secondary_label = Gtk.Label(secondary_markup)
secondary_label.show()
vbox.pack_start(secondary_label, True, True, 0)
secondary_label.set_can_focus(True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]