Skip to content

Commit

Permalink
Merge pull request #285 from torikulhabib/master
Browse files Browse the repository at this point in the history
Update AddUrl.vala
  • Loading branch information
torikulhabib authored Jun 28, 2024
2 parents 783088f + 27ea0ec commit f0175dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/AddUrl.vala
Original file line number Diff line number Diff line change
Expand Up @@ -319,18 +319,15 @@ namespace Gabut {
var save_image = new Gtk.Image () {
valign = Gtk.Align.CENTER,
pixel_size = 64,
tooltip_text = _("Backup Torrent File"),
gicon = new ThemedIcon ("com.github.gabutakut.gabutdm.svdrv")
};

save_meta = new Gtk.CheckButton.with_label ("Backup") {
save_meta = new Gtk.CheckButton () {
valign = Gtk.Align.END,
halign = Gtk.Align.CENTER,
tooltip_text = _("Backup Torrent File")
};
((Gtk.Label) save_meta.get_last_child ()).attributes = set_attribute (Pango.Weight.SEMIBOLD);
((Gtk.Label) save_meta.get_last_child ()).ellipsize = Pango.EllipsizeMode.END;
((Gtk.Label) save_meta.get_last_child ()).max_width_chars = 10;

save_image.sensitive = save_meta.active;
save_meta.toggled.connect (()=> {
save_image.sensitive = save_meta.active;
Expand Down

0 comments on commit f0175dc

Please sign in to comment.