]> Pileus Git - ~andy/gtk/blobdiff - examples/arrow/arrow.c
Use gtk_box_new() instead gtk_[v|h]box_new()
[~andy/gtk] / examples / arrow / arrow.c
index 1ffca7d77a9a598b14683f938a4e2f5fc7d739c2..149af8098bbd1c3d2339f0b6e7ee54d84e605fcc 100644 (file)
@@ -1,11 +1,10 @@
 
-#include <config.h>
 #include <gtk/gtk.h>
 
 /* Create an Arrow widget with the specified parameters
  * and pack it into a button */
-GtkWidget *create_arrow_button( GtkArrowType  arrow_type,
-                               GtkShadowType shadow_type )
+static GtkWidget *create_arrow_button( GtkArrowType  arrow_type,
+                                       GtkShadowType shadow_type )
 {
   GtkWidget *button;
   GtkWidget *arrow;
@@ -45,7 +44,7 @@ int main( int   argc,
   gtk_container_set_border_width (GTK_CONTAINER (window), 10);
 
   /* Create a box to hold the arrows/buttons */
-  box = gtk_hbox_new (FALSE, 0);
+  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE, 0);
   gtk_container_set_border_width (GTK_CONTAINER (box), 2);
   gtk_container_add (GTK_CONTAINER (window), box);