Skip to content

Commit

Permalink
Merge pull request #290 from torikulhabib/master
Browse files Browse the repository at this point in the history
Style
  • Loading branch information
torikulhabib authored Jul 20, 2024
2 parents eec8b59 + 3a5f92e commit a10a8e6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DownloadRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ namespace Gabut {

var openimage = new Gtk.Button () {
focus_on_click = false,
has_frame = false,
child = overlay,
tooltip_text = _("Open Details")
};
Expand All @@ -383,14 +384,16 @@ namespace Gabut {
};

start_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.active") {
valign = Gtk.Align.CENTER
valign = Gtk.Align.CENTER,
has_frame = false
};
start_button.clicked.connect (()=> {
action_btn ();
});

var remove_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") {
valign = Gtk.Align.CENTER,
has_frame = false,
tooltip_text = _("Remove")
};
remove_button.clicked.connect (remove_down);
Expand Down
9 changes: 9 additions & 0 deletions src/GabutWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,14 @@ namespace Gabut {
decoration_layout = ":close"
};
var menu_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.settings") {
has_frame = false,
tooltip_text = _("Settings")
};
headerbar.pack_end (menu_button);
menu_button.clicked.connect (menuprefernces);

var search_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.find") {
has_frame = false,
tooltip_text = _("Search")
};
headerbar.pack_end (search_button);
Expand All @@ -395,30 +397,35 @@ namespace Gabut {
search_entry.text = "";
});
var host_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.gohome") {
has_frame = false,
tooltip_text = _("Remote")
};
headerbar.pack_end (host_button);
host_button.clicked.connect (qrmenuopen);
var add_open = new Gtk.MenuButton () {
child = new Gtk.Image.from_icon_name ("com.github.gabutakut.gabutdm.insertlink"),
direction = Gtk.ArrowType.UP,
has_frame = false,
popover = get_openmenu (),
tooltip_text = _("Add/Open")
};
headerbar.pack_start (add_open);
var resumeall_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.active") {
has_frame = false,
tooltip_text = _("Start All")
};
headerbar.pack_start (resumeall_button);
resumeall_button.clicked.connect (start_all);

var stopall_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.pause") {
has_frame = false,
tooltip_text = _("Pause All")
};
headerbar.pack_start (stopall_button);
stopall_button.clicked.connect (stop_all);

var removeall_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") {
has_frame = false,
tooltip_text = _("Remove All")
};
headerbar.pack_start (removeall_button);
Expand Down Expand Up @@ -535,6 +542,7 @@ namespace Gabut {
var property_button = new Gtk.MenuButton () {
child = new Gtk.Image.from_icon_name ("com.github.gabutakut.gabutdm.menu"),
direction = Gtk.ArrowType.UP,
has_frame = false,
margin_start = 6,
tooltip_text = _("Property")
};
Expand Down Expand Up @@ -578,6 +586,7 @@ namespace Gabut {
child = new Gtk.Image.from_icon_name ("com.github.gabutakut.gabutdm.opt"),
popover = get_menu (),
margin_end = 6,
has_frame = false,
tooltip_text = _("Sort by")
};
var actionbar = new Gtk.CenterBox () {
Expand Down
6 changes: 6 additions & 0 deletions src/Preferences.vala
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ namespace Gabut {
};

var load_tr = new Gtk.Button.from_icon_name ("document-open") {
has_frame = false,
tooltip_text = _("Open Text Tracker")
};
load_tr.clicked.connect (() => {
Expand All @@ -335,6 +336,7 @@ namespace Gabut {
});

var fformat_tr = new Gtk.Button.from_icon_name ("view-refresh") {
has_frame = false,
tooltip_text = _("Fix to Tracker")
};
fformat_tr.clicked.connect (() => {
Expand All @@ -343,6 +345,7 @@ namespace Gabut {
});

var clear_tr = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") {
has_frame = false,
tooltip_text = _("Clear Text Tracker")
};
clear_tr.clicked.connect (() => {
Expand Down Expand Up @@ -375,6 +378,7 @@ namespace Gabut {
};

var load_etr = new Gtk.Button.from_icon_name ("document-open") {
has_frame = false,
tooltip_text = _("Open Text Tracker")
};
load_etr.clicked.connect (() => {
Expand All @@ -395,13 +399,15 @@ namespace Gabut {
});
});
var fformat_etr = new Gtk.Button.from_icon_name ("view-refresh") {
has_frame = false,
tooltip_text = _("Fix to Tracker")
};
fformat_etr.clicked.connect (() => {
var formatclr = fixtoformat (etrackertext.buffer.text);
etrackertext.buffer.text = formatclr;
});
var clear_etr = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") {
has_frame = false,
tooltip_text = _("Clear Text Tracker")
};
clear_etr.clicked.connect (() => {
Expand Down

0 comments on commit a10a8e6

Please sign in to comment.