[gupnp-tools] universal-cp: Fix about icon
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-tools] universal-cp: Fix about icon
- Date: Sat, 9 Sep 2017 10:19:15 +0000 (UTC)
commit 4046b9854429a95d125212a3771fd1cb2424843f
Author: Jens Georg <mail jensge org>
Date: Fri Sep 8 20:37:32 2017 +0200
universal-cp: Fix about icon
Move init_icons up and actually add the logo to the resources
data/org.gupnp.Tools.Common.gresource.xml | 13 +++++++++----
src/network-light/gui.c | 2 ++
src/universal-cp/gui.c | 3 ++-
3 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/data/org.gupnp.Tools.Common.gresource.xml b/data/org.gupnp.Tools.Common.gresource.xml
index 6849b66..1f42747 100644
--- a/data/org.gupnp.Tools.Common.gresource.xml
+++ b/data/org.gupnp.Tools.Common.gresource.xml
@@ -2,11 +2,16 @@
<gresources>
<gresource prefix='/org/gupnp/Tools/Common'>
<file>pixmaps/av-cp.png</file>
+ <file>pixmaps/media-renderer.png</file>
+ <file>pixmaps/network-light-22x22.png</file>
+ <file>pixmaps/network-light-256x256.png</file>
+ <file>pixmaps/network-light-off.png</file>
+ <file>pixmaps/network-light-on.png</file>
+ <file>pixmaps/universal-cp.png</file>
+ <file>pixmaps/upnp-action-arg-in.png</file>
+ <file>pixmaps/upnp-action-arg-out.png</file>
<file>pixmaps/upnp-device.png</file>
<file>pixmaps/upnp-service.png</file>
<file>pixmaps/upnp-state-variable.png</file>
- <file>pixmaps/upnp-action-arg-in.png</file>
- <file>pixmaps/upnp-action-arg-out.png</file>
- <file>pixmaps/media-renderer.png</file>
- </gresource>
+ </gresource>
</gresources>
diff --git a/src/network-light/gui.c b/src/network-light/gui.c
index bb5cc5d..7259801 100644
--- a/src/network-light/gui.c
+++ b/src/network-light/gui.c
@@ -218,6 +218,7 @@ init_ui (gint *argc,
change_all = !exclusive;
gtk_init (argc, argv);
+ init_icons ();
builder = gtk_builder_new ();
g_assert (builder != NULL);
@@ -289,5 +290,6 @@ deinit_ui (void)
gtk_widget_destroy (about_dialog);
g_object_unref (on_pixbuf);
g_object_unref (off_pixbuf);
+ deinit_icons ();
}
diff --git a/src/universal-cp/gui.c b/src/universal-cp/gui.c
index d56ef9d..d307121 100644
--- a/src/universal-cp/gui.c
+++ b/src/universal-cp/gui.c
@@ -165,6 +165,8 @@ init_ui (gint *argc,
window_height);
+ init_icons ();
+
icon_pixbuf = load_pixbuf_file (ICON_FILE);
if (icon_pixbuf == NULL) {
return FALSE;
@@ -181,7 +183,6 @@ init_ui (gint *argc,
gtk_builder_connect_signals (builder, NULL);
- init_icons ();
setup_treeviews ();
init_action_dialog (builder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]