[gupnp-tools] av-cp: Set audio control icons in glade



commit 0b351ffa2a4e7265df00f1f3f53c4e1cbb6b8f7c
Author: Jens Georg <jgeorg de adit-jv com>
Date:   Tue May 2 12:42:59 2017 +0200

    av-cp: Set audio control icons in glade

 data/gupnp-av-cp.ui |    2 +-
 src/av-cp/gui.c     |   14 --------------
 src/common/icons.c  |    2 --
 src/common/icons.h  |    2 --
 4 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/data/gupnp-av-cp.ui b/data/gupnp-av-cp.ui
index 1ab7199..0630cb0 100644
--- a/data/gupnp-av-cp.ui
+++ b/data/gupnp-av-cp.ui
@@ -642,7 +642,7 @@
                     <property name="can_focus">False</property>
                     <property name="halign">center</property>
                     <property name="valign">center</property>
-                    <property name="icon_name">audio-volume-low</property>
+                    <property name="icon_name">audio-volume-muted</property>
                   </object>
                   <packing>
                     <property name="left_attach">1</property>
diff --git a/src/av-cp/gui.c b/src/av-cp/gui.c
index 6017f60..11df298 100644
--- a/src/av-cp/gui.c
+++ b/src/av-cp/gui.c
@@ -58,8 +58,6 @@ static void
 setup_icons (GtkBuilder *object)
 {
         GdkPixbuf *icon_pixbuf;
-        GtkWidget *volume_min;
-        GtkWidget *volume_max;
 
         init_icons ();
 
@@ -71,18 +69,6 @@ setup_icons (GtkBuilder *object)
         gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about_dialog),
                                    icon_pixbuf);
         g_object_unref (icon_pixbuf);
-
-        volume_min = GTK_WIDGET (gtk_builder_get_object (builder,
-                                                         "volume-min-image"));
-        g_assert (volume_min != NULL);
-        volume_max = GTK_WIDGET (gtk_builder_get_object (builder,
-                                                         "volume-max-image"));
-        g_assert (volume_max != NULL);
-
-        gtk_image_set_from_pixbuf (GTK_IMAGE (volume_min),
-                                   get_icon_by_id (ICON_MIN_VOLUME));
-        gtk_image_set_from_pixbuf (GTK_IMAGE (volume_max),
-                                   get_icon_by_id (ICON_MAX_VOLUME));
 }
 
 gboolean
diff --git a/src/common/icons.c b/src/common/icons.c
index 44df362..4fe76f9 100644
--- a/src/common/icons.c
+++ b/src/common/icons.c
@@ -280,8 +280,6 @@ init_icons (void)
                 "system-run",                  /* ICON_ACTION     */
                 "folder",                      /* ICON_VARIABLES  */
                 "text-x-generic",              /* ICON_FILE       */
-                "audio-volume-muted",          /* ICON_MIN_VOLUME */
-                "audio-volume-high",           /* ICON_MAX_VOLUME */
                 "folder-remote",               /* ICON_CONTAINER  */
                 "audio-x-generic",             /* ICON_AUDIO_ITEM */
                 "video-x-generic",             /* ICON_VIDEO_ITEM */
diff --git a/src/common/icons.h b/src/common/icons.h
index bf86eb9..6b5fb95 100644
--- a/src/common/icons.h
+++ b/src/common/icons.h
@@ -38,8 +38,6 @@ typedef enum
         ICON_ACTION,
         ICON_VARIABLES,
         ICON_FILE,
-        ICON_MIN_VOLUME,
-        ICON_MAX_VOLUME,
         ICON_CONTAINER,
         ICON_AUDIO_ITEM,
         ICON_VIDEO_ITEM,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]