Ellipsis in title and msg of alert

This commit is contained in:
AbrahmAB 2016-02-27 06:06:26 +05:30
parent 8d4298ee9e
commit cd449e7149

View File

@ -98,10 +98,12 @@ class Alert(Gtk.EventBox):
self._msg_box = Gtk.VBox() self._msg_box = Gtk.VBox()
self._title_label = Gtk.Label() self._title_label = Gtk.Label()
self._title_label.set_alignment(0, 0.5) self._title_label.set_alignment(0, 0.5)
self._title_label.set_ellipsize(style.ELLIPSIZE_MODE_DEFAULT)
self._msg_box.pack_start(self._title_label, False, False, 0) self._msg_box.pack_start(self._title_label, False, False, 0)
self._msg_label = Gtk.Label() self._msg_label = Gtk.Label()
self._msg_label.set_alignment(0, 0.5) self._msg_label.set_alignment(0, 0.5)
self._msg_label.set_ellipsize(style.ELLIPSIZE_MODE_DEFAULT)
self._msg_box.pack_start(self._msg_label, False, False, 0) self._msg_box.pack_start(self._msg_label, False, False, 0)
self._hbox.pack_start(self._msg_box, False, False, 0) self._hbox.pack_start(self._msg_box, False, False, 0)