Skip to content

Commit 917ea0a

Browse files
authored
change label (#2010)
1 parent cc3f1e1 commit 917ea0a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

core/Widgets/ContextMenu/MenuSwitch.vala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ public class Widgets.ContextMenu.MenuSwitch : Gtk.Button {
7979

8080
menu_icon_revealer.child = menu_icon;
8181

82-
menu_title = new Gtk.Label (null);
83-
menu_title.use_markup = true;
82+
menu_title = new Gtk.Label (null) {
83+
ellipsize = END,
84+
max_width_chars = 16,
85+
use_markup = true
86+
};
8487

8588
switch_widget = new Gtk.Switch () {
8689
valign = CENTER,

src/Views/Project/Project.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ public class Views.Project : Adw.Bin {
537537
arrow = true
538538
};
539539

540-
var show_completed_item = new Widgets.ContextMenu.MenuSwitch (_ ("Completed Tasks"), "check-round-outline-symbolic");
540+
var show_completed_item = new Widgets.ContextMenu.MenuSwitch (_ ("Show Completed Tasks"), "check-round-outline-symbolic");
541541
show_completed_item.active = project.show_completed;
542542

543543
var show_completed_item_button = new Gtk.Button.from_icon_name ("edit-find-symbolic") {

0 commit comments

Comments
 (0)