[gnome-usage] application: Load icon resources
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-usage] application: Load icon resources
- Date: Wed, 24 Jun 2020 13:10:14 +0000 (UTC)
commit 06c01e95709e2cffc200c2a713d323031e58d0f1
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Sep 10 19:08:29 2019 +0200
application: Load icon resources
This is needed to access the embedded icons.
src/application.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/application.vala b/src/application.vala
index 306874e..ebfe119 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -61,6 +61,9 @@ namespace Usage
base.startup();
add_action_entries(app_entries, this);
set_accels_for_action ("app.search", {"<Primary>f"});
+
+ var icon_theme = Gtk.IconTheme.get_default ();
+ icon_theme.add_resource_path ("/org/gnome/Usage/icons/hicolor");
}
private void on_about(GLib.SimpleAction action, GLib.Variant? parameter)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]