]> Pileus Git - ~andy/gtk/blobdiff - tests/testrecentchooser.c
tests: Add simple CSS test for widget style properties
[~andy/gtk] / tests / testrecentchooser.c
index e3a7d48549e5f533ff2ce0f58947938ed491a185..d31f0f0ab1eb950528bb05e50fc09ea78dc16da3 100644 (file)
@@ -17,7 +17,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
-#include <config.h>
+#include "config.h"
 
 #include <string.h>
 #include <sys/types.h>
@@ -97,9 +97,9 @@ notify_multiple_cb (GtkWidget  *dialog,
 
 static void
 kill_dependent (GtkWindow *win,
-               GtkObject *dep)
+               GtkWidget *dep)
 {
-  gtk_object_destroy (dep);
+  gtk_widget_destroy (dep);
   g_object_unref (dep);
 }
 
@@ -111,7 +111,6 @@ main (int   argc,
   GtkWidget *vbbox;
   GtkWidget *button;
   GtkWidget *dialog;
-  GtkWidget *prop_editor;
   GtkRecentFilter *filter;
   gint i;
   gboolean multiple = FALSE;
@@ -172,11 +171,11 @@ main (int   argc,
 
   gtk_widget_show_all (dialog);
 
-  prop_editor = create_prop_editor (G_OBJECT (dialog), GTK_TYPE_RECENT_CHOOSER);
+  create_prop_editor (G_OBJECT (dialog), GTK_TYPE_RECENT_CHOOSER);
 
   control_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
-  vbbox = gtk_vbutton_box_new ();
+  vbbox = gtk_button_box_new (GTK_ORIENTATION_VERTICAL);
   gtk_container_add (GTK_CONTAINER (control_window), vbbox);
 
   button = gtk_button_new_with_mnemonic ("_Select all");