/pidgin/main: 7b1c2a7c0c1d: gtkmedia: use distinct icon for inpu...
Jakub Adam
jakub.adam at ktknet.cz
Fri Apr 29 11:40:46 EDT 2016
Changeset: 7b1c2a7c0c1dc76d164f0828e979c18b0d7fbcb2
Author: Jakub Adam <jakub.adam at ktknet.cz>
Date: 2016-04-22 11:24 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/7b1c2a7c0c1d
Description:
gtkmedia: use distinct icon for input volume
Replace speaker icon with "microphone sensitivity" stock GTK+ icon so
that it's easier for the user to tell the input and output meters apart.
diffstat:
pidgin/gtkmedia.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diffs (28 lines):
diff --git a/pidgin/gtkmedia.c b/pidgin/gtkmedia.c
--- a/pidgin/gtkmedia.c
+++ b/pidgin/gtkmedia.c
@@ -696,6 +696,14 @@ pidgin_media_add_audio_widget(PidginMedi
GtkWidget *volume_widget, *progress_parent, *volume, *progress;
double value;
+ static const gchar * const input_volume_icons[] = {
+ "microphone-sensitivity-muted-symbolic",
+ "microphone-sensitivity-high-symbolic",
+ "microphone-sensitivity-low-symbolic",
+ "microphone-sensitivity-medium-symbolic",
+ NULL
+ };
+
if (type & PURPLE_MEDIA_SEND_AUDIO) {
value = purple_prefs_get_int(
"/purple/media/audio/volume/input");
@@ -726,6 +734,9 @@ pidgin_media_add_audio_widget(PidginMedi
g_signal_connect (G_OBJECT(volume), "value-changed",
G_CALLBACK(pidgin_media_input_volume_changed),
gtkmedia->priv->media);
+ gtk_scale_button_set_icons(GTK_SCALE_BUTTON(volume),
+ input_volume_icons);
+
gtkmedia->priv->send_progress = progress;
} else if (type & PURPLE_MEDIA_RECV_AUDIO) {
g_signal_connect (G_OBJECT(volume), "value-changed",
More information about the Commits
mailing list