Skip to content

Commit

Permalink
Merge pull request #250 from torikulhabib/master
Browse files Browse the repository at this point in the history
RemoveLibcanberra
  • Loading branch information
torikulhabib authored Mar 29, 2024
2 parents 0d8e927 + 3eccea9 commit ce4c0e3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 23 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ Made for peoples all needed download manager
thank you all for the support and donations.
we will continue to strive to make gabutdm a useful application.
</p>

**PayPal**
You can transfer to my paypal account `torikhabib` or just click [PayPal Me](https://www.paypal.com/paypalme/TorikulHabib?locale.x=id_ID)

**Bitcoin**
Bitcoin Address `19mZDWzZgzkHCi9YX9H3fYCUuCHq3W6wfT`

**Saweria**
![alt text](image.png)
Binary file added image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ dependencies = [
dependency ('glib-2.0'),
dependency ('gtk4'),
dependency ('sqlite3'),
dependency ('libcanberra'),
dependency ('libsoup-3.0'),
dependency ('gee-0.8'),
dependency ('json-glib-1.0'),
Expand Down
2 changes: 0 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ namespace Gabut {
if (open_database (out gabutdb) != Sqlite.OK) {
notify_app (_("Database Error"),
_("Can't open database: %s\n").printf (gabutdb.errmsg ()), new ThemedIcon ("office-database"));
play_sound ("dialog-error");
}
settings_table ();
if (!bool.parse (get_dbsetting (DBSettings.STARTUP)) && startingup) {
Expand Down Expand Up @@ -179,7 +178,6 @@ namespace Gabut {
pantheon_theme.begin ();
gabutwindow.load_dowanload ();
download_table ();
play_sound ("bell");
if (!startingup && !dontopen) {
gabutwindow.show ();
}
Expand Down
3 changes: 0 additions & 3 deletions src/DownloadRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ namespace Gabut {
if (filename != null) {
GLib.Application.get_default ().lookup_action ("destroy").activate (new Variant.string (ariagid));
notify_app (_("Download Complete"), filename, imagefile.gicon);
play_sound ("complete");
if (bool.parse (get_dbsetting (DBSettings.DIALOGNOTIF))) {
if (pathname != null && pathname != "" && fileordir != "" && fileordir != null) {
send_dialog ();
Expand Down Expand Up @@ -152,7 +151,6 @@ namespace Gabut {
labeltransfer = get_aria_error (int.parse (aria_tell_status (ariagid, TellStatus.ERRORCODE)));
if (filename != null) {
notify_app (_("Download Error"), filename, imagefile.gicon);
play_sound ("com.github.gabutakut.gabutdm.error");
}
aria_remove (ariagid);
}
Expand Down Expand Up @@ -464,7 +462,6 @@ namespace Gabut {
} else {
notify_app (_("Starting"), url, new ThemedIcon ("com.github.gabutakut.gabutdm.insertlink"));
}
play_sound ("device-added");
}

public void idle_progress () {
Expand Down
3 changes: 0 additions & 3 deletions src/GabutServer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ namespace Gabut {
if (!filed.query_exists ()) {
write_file.begin (body, filed.get_path ());
notify_app (_("File Transfered"), _("%s").printf (filename), new ThemedIcon (GLib.ContentType.get_generic_icon_name (headers.get_content_type (null))));
play_sound ("complete");
} else {
notify_app (_("File Exist"), _("%s").printf (filename), new ThemedIcon (GLib.ContentType.get_generic_icon_name (headers.get_content_type (null))));
play_sound ("dialog-error");
}
}
msg.set_status (Soup.Status.OK, "OK");
Expand All @@ -106,7 +104,6 @@ namespace Gabut {
if (reslink != "") {
if (reslink.has_prefix ("http://") || reslink.has_prefix ("https://") || reslink.has_prefix ("ftp://") || reslink.has_prefix ("sftp://")) {
notify_app (_("Open Link"), reslink, new ThemedIcon ("insert-link"));
play_sound ("complete");
open_fileman.begin (reslink);
}
}
Expand Down
14 changes: 0 additions & 14 deletions src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2414,20 +2414,6 @@ namespace Gabut {
}
}

private static void play_sound (string canbera) {
if (!bool.parse (get_dbsetting (DBSettings.NOTIFSOUND))) {
return;
}
Canberra.Context context;
Canberra.Proplist props;
Canberra.Context.create (out context);
Canberra.Proplist.create (out props);
props.sets (Canberra.PROP_EVENT_ID, canbera);
props.sets (Canberra.PROP_CANBERRA_CACHE_CONTROL, "permanent");
props.sets (Canberra.PROP_MEDIA_ROLE, "event");
context.play_full (0, props);
}

private File[] run_open_file (Gtk.Window window) {
var loopop = new GLib.MainLoop (null, false);
var filechooser = new Gtk.FileChooserNative (_("Open Torrent Or Metalink"), window, Gtk.FileChooserAction.OPEN, _("Open"), _("Cancel")) {
Expand Down

0 comments on commit ce4c0e3

Please sign in to comment.