[gnome-media] Adapt to GtkObject removal in GTK3
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-media] Adapt to GtkObject removal in GTK3
- Date: Wed, 6 Oct 2010 01:12:41 +0000 (UTC)
commit 11bbee84bcc2ee153124de7dd11c53387373512f
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 6 03:11:30 2010 +0200
Adapt to GtkObject removal in GTK3
gtk_adjustment_new() now returns a GtkAdjustment*
gst-mixer/src/volume.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gst-mixer/src/volume.c b/gst-mixer/src/volume.c
index 18be41a..c604538 100644
--- a/gst-mixer/src/volume.c
+++ b/gst-mixer/src/volume.c
@@ -91,7 +91,7 @@ get_scale (GnomeVolumeControlVolume *vol,
gint volume)
{
GtkWidget *slider;
- GtkObject *adj;
+ GtkAdjustment *adj;
AtkObject *accessible;
gchar *accessible_name;
@@ -101,7 +101,7 @@ get_scale (GnomeVolumeControlVolume *vol,
(vol->track->max_volume - vol->track->min_volume) / 10.0, 0.0);
g_signal_connect (adj, "value_changed",
G_CALLBACK (cb_volume_changed), vol);
- slider = gtk_vscale_new (GTK_ADJUSTMENT (adj));
+ slider = gtk_vscale_new (adj);
gtk_scale_set_draw_value (GTK_SCALE (slider), FALSE);
gtk_range_set_inverted (GTK_RANGE (slider), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]