aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-10 22:59:35 -0600
committerTed Gould <ted@gould.cx>2010-03-10 22:59:35 -0600
commit69c96d7e7fa903569073bd87069b2d9f6aeb3fa4 (patch)
treea02dfb999a0829a4a0946001e5fdaf2568df2579 /src/indicator-sound.c
parent633b514efeaf1c4086e1b2e5fbef185b199517c8 (diff)
downloadayatana-indicator-sound-69c96d7e7fa903569073bd87069b2d9f6aeb3fa4.tar.gz
ayatana-indicator-sound-69c96d7e7fa903569073bd87069b2d9f6aeb3fa4.tar.bz2
ayatana-indicator-sound-69c96d7e7fa903569073bd87069b2d9f6aeb3fa4.zip
Update to use new icon helper from libindicator
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 3a6ae30..0b92af8 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -34,6 +34,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libindicator/indicator.h>
#include <libindicator/indicator-object.h>
#include <libindicator/indicator-service-manager.h>
+#include <libindicator/indicator-image-helper.h>
#include "indicator-sound.h"
#include "dbus-shared-names.h"
@@ -180,7 +181,7 @@ get_icon (IndicatorObject * io)
{
gchar* current_name = g_hash_table_lookup(volume_states, GINT_TO_POINTER(current_state));
//g_debug("At start-up attempting to set the image to %s", current_name);
- speaker_image = GTK_IMAGE(gtk_image_new_from_icon_name(current_name, GTK_ICON_SIZE_MENU));
+ speaker_image = indicator_image_helper(current_name);
gtk_widget_show(GTK_WIDGET(speaker_image));
return speaker_image;
}
@@ -327,7 +328,9 @@ static void update_state(const gint state)
current_state = state;
gchar* image_name = g_hash_table_lookup(volume_states, GINT_TO_POINTER(current_state));
- gtk_image_set_from_icon_name(speaker_image, image_name, GTK_ICON_SIZE_MENU);
+ GtkImage * tempimage = indicator_image_helper(image_name);
+ gtk_image_set_from_pixbuf(speaker_image, gtk_image_get_pixbuf(tempimage));
+ g_object_ref_sink(tempimage);
}