]> Pileus Git - ~andy/gtk/blobdiff - tests/testrecentchooser.c
stylecontext: Do invalidation on first resize container
[~andy/gtk] / tests / testrecentchooser.c
index eeb80238d51c009ab479d480b0d91ff83d257f98..1ffde965c87dfe8aa29b7d285b5238cd9e1a7b04 100644 (file)
  * 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 <config.h>
+#include "config.h"
 
 #include <string.h>
 #include <sys/types.h>
@@ -97,9 +95,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 +109,6 @@ main (int   argc,
   GtkWidget *vbbox;
   GtkWidget *button;
   GtkWidget *dialog;
-  GtkWidget *prop_editor;
   GtkRecentFilter *filter;
   gint i;
   gboolean multiple = FALSE;
@@ -130,6 +127,8 @@ main (int   argc,
 
   dialog = g_object_new (GTK_TYPE_RECENT_CHOOSER_DIALOG,
                         "select-multiple", multiple,
+                         "show-tips", TRUE,
+                         "show-icons", TRUE,
                         NULL);
   gtk_window_set_title (GTK_WINDOW (dialog), "Select a file");
   gtk_dialog_add_buttons (GTK_DIALOG (dialog),
@@ -170,11 +169,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");