Use accessor functions to access GtkScaleButton

This commit is contained in:
Javier Jardón
2010-07-08 03:30:47 +02:00
parent 6fb0e3a09f
commit bcc8494899
2 changed files with 13 additions and 9 deletions

View File

@ -999,7 +999,7 @@ create_volume_button (void)
button = gtk_volume_button_new ();
gtk_scale_button_set_value (GTK_SCALE_BUTTON (button), 33);
/* Hack: get the private dock */
widget = GTK_SCALE_BUTTON (button)->plus_button->parent->parent->parent;
widget = gtk_scale_button_get_plus_button (GTK_SCALE_BUTTON (button))->parent->parent->parent;
gtk_widget_show_all (widget);
return new_widget_info ("volumebutton", widget, ASIS);
}