Lined up widgets in header
This commit is contained in:
parent
090ce3632e
commit
585fbb4156
|
@ -278,16 +278,16 @@ class TweetBox(gtk.HBox):
|
||||||
self.app_button = gtk.Button()
|
self.app_button = gtk.Button()
|
||||||
via_label = gtk.Label(' via ')
|
via_label = gtk.Label(' via ')
|
||||||
self.header = gtk.Button()
|
self.header = gtk.Button()
|
||||||
label_box = gtk.HBox()
|
header_box = gtk.HBox()
|
||||||
label_box.pack_start(self.user_button, expand=False)
|
header_box.pack_start(self.user_button, expand=False)
|
||||||
label_box.pack_start(self.time_label, expand=False)
|
header_box.pack_start(self.time_label, expand=False)
|
||||||
label_box.pack_start(via_label, expand=False)
|
header_box.pack_start(via_label, expand=False)
|
||||||
label_box.pack_start(self.app_button, expand=False)
|
header_box.pack_start(self.app_button, expand=False)
|
||||||
text_box.pack_start(label_box)
|
text_box.pack_start(header_box)
|
||||||
|
|
||||||
# Set the header's properties
|
# Set the header's properties
|
||||||
label_box.modify_text(gtk.STATE_NORMAL,gtk.gdk.color_parse("#ffffff"))
|
header_box.modify_text(gtk.STATE_NORMAL,gtk.gdk.color_parse("#ffffff"))
|
||||||
label_box.modify_bg(gtk.STATE_NORMAL,gtk.gdk.color_parse("#8888ff"))
|
header_box.modify_bg(gtk.STATE_NORMAL,gtk.gdk.color_parse("#8888ff"))
|
||||||
self.user_button.set_relief(gtk.RELIEF_NONE)
|
self.user_button.set_relief(gtk.RELIEF_NONE)
|
||||||
self.user_button.set_alignment(0.0, 0.0)
|
self.user_button.set_alignment(0.0, 0.0)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user