]> Pileus Git - ~andy/gtk/blobdiff - tests/testvolumebutton.c
Change FSF Address
[~andy/gtk] / tests / testvolumebutton.c
index 01ff5ddbe27994c06ef80673cdd48d2153ea4003..30697c5c661bf279508716e2b3f1e03ca0052a63 100644 (file)
@@ -12,9 +12,7 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include <gtk/gtk.h>
@@ -31,15 +29,15 @@ static void
 toggle_orientation (GtkWidget *button,
                     GtkWidget *scalebutton)
 {
-  if (gtk_scale_button_get_orientation (GTK_SCALE_BUTTON (scalebutton)) ==
+  if (gtk_orientable_get_orientation (GTK_ORIENTABLE (scalebutton)) ==
       GTK_ORIENTATION_HORIZONTAL)
     {
-      gtk_scale_button_set_orientation (GTK_SCALE_BUTTON (scalebutton),
+      gtk_orientable_set_orientation (GTK_ORIENTABLE (scalebutton),
                                         GTK_ORIENTATION_VERTICAL);
     }
   else
     {
-      gtk_scale_button_set_orientation (GTK_SCALE_BUTTON (scalebutton),
+      gtk_orientable_set_orientation (GTK_ORIENTABLE (scalebutton),
                                         GTK_ORIENTATION_HORIZONTAL);
     }
 }
@@ -70,7 +68,7 @@ show_error (gpointer data)
                     G_CALLBACK (response_cb), NULL);
   gtk_widget_show (dialog);
 
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 int
@@ -88,7 +86,7 @@ main (int    argc,
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   button = gtk_volume_button_new ();
   button2 = gtk_volume_button_new ();
-  box = gtk_hbox_new (FALSE, 0);
+  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 
   g_signal_connect (G_OBJECT (button), "value-changed",
                     G_CALLBACK (value_changed),