[gthumb] fixed volume scale in the media player
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed volume scale in the media player
- Date: Sun, 4 Jul 2010 17:52:14 +0000 (UTC)
commit 15d6ecfe681e281ddf57f8267e2cf04393878958
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Jul 4 19:50:00 2010 +0200
fixed volume scale in the media player
allow to change the volume from 0 to 200% instead of from 0 to 1000%
extensions/gstreamer_tools/data/ui/mediabar.ui | 2 +-
extensions/gstreamer_tools/gth-media-viewer-page.c | 4 ++--
gthumb/gth-filterbar.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/extensions/gstreamer_tools/data/ui/mediabar.ui b/extensions/gstreamer_tools/data/ui/mediabar.ui
index bb59e91..eae7d55 100644
--- a/extensions/gstreamer_tools/data/ui/mediabar.ui
+++ b/extensions/gstreamer_tools/data/ui/mediabar.ui
@@ -223,8 +223,8 @@
<property name="page_size">1</property>
</object>
<object class="GtkAdjustment" id="adjustment_volume">
- <property name="upper">100</property>
<property name="value">100</property>
+ <property name="upper">200</property>
<property name="step_increment">1</property>
</object>
</interface>
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index 4453a8f..8265b13 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -256,7 +256,7 @@ volume_value_changed_cb (GtkAdjustment *adjustment,
if (self->priv->playbin != NULL)
g_object_set (self->priv->playbin,
"volume",
- gtk_adjustment_get_value (adjustment) / 10.0,
+ gtk_adjustment_get_value (adjustment) / 100.0,
NULL);
}
@@ -476,7 +476,7 @@ update_volume_from_playbin (GthMediaViewerPage *self)
gtk_image_set_from_icon_name (GTK_IMAGE (GET_WIDGET ("togglebutton_volume_image")), "audio-volume-high", GTK_ICON_SIZE_BUTTON);
g_signal_handlers_block_by_func(GET_WIDGET ("adjustment_volume"), volume_value_changed_cb, self);
- gtk_adjustment_set_value (GTK_ADJUSTMENT (GET_WIDGET ("adjustment_volume")), volume * 10.0);
+ gtk_adjustment_set_value (GTK_ADJUSTMENT (GET_WIDGET ("adjustment_volume")), volume * 100.0);
g_signal_handlers_unblock_by_func(GET_WIDGET ("adjustment_volume"), volume_value_changed_cb, self);
}
diff --git a/gthumb/gth-filterbar.c b/gthumb/gth-filterbar.c
index a46017c..340ae3f 100644
--- a/gthumb/gth-filterbar.c
+++ b/gthumb/gth-filterbar.c
@@ -403,7 +403,7 @@ gth_filterbar_construct (GthFilterbar *filterbar,
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_show_all (button);
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
- gtk_widget_set_tooltip_text (button, _("Close"));
+ gtk_widget_set_tooltip_text (button, _("Hide the filterbar"));
g_signal_connect (G_OBJECT (button),
"clicked",
G_CALLBACK (close_button_clicked_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]