Skip to content

Commit

Permalink
Ensure word wrapping and center justification for StartListening label.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshStrobl committed Feb 13, 2019
1 parent 5c97692 commit 62b0c73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/raven/start_listening.vala
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ namespace Budgie {
public StartListening() {
Object(orientation: Gtk.Orientation.VERTICAL, margin: 10);
var label = new Gtk.Label("<big>%s</big>".printf(_("No apps are currently playing audio.")));
label.justify = Gtk.Justification.CENTER;
label.halign = Gtk.Align.CENTER;
label.max_width_chars = 36;
label.use_markup = true;
label.valign = Gtk.Align.CENTER;
label.wrap = true;
label.wrap_mode = Pango.WrapMode.WORD;
start_listening = new Gtk.Button.with_label(_("Play some music"));
start_listening.hexpand = false;

pack_start(label, true, true, 10);
pack_start(start_listening, false, false, 0);

Expand Down

0 comments on commit 62b0c73

Please sign in to comment.