]> Pileus Git - ~andy/gtk/blobdiff - tests/testgtk.c
Fixed child->icon and child->label == NULL bugs.
[~andy/gtk] / tests / testgtk.c
index a96735ce6a532b841918a9ba76323b844432cd41..e8471327ec50e89e4aebd3bf0e8a64c672a7f243 100644 (file)
@@ -632,12 +632,13 @@ create_toolbar (void)
 {
   static GtkWidget *window = NULL;
   GtkWidget *toolbar;
+  GtkWidget *entry;
 
   if (!window)
     {
       window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
       gtk_window_set_title (GTK_WINDOW (window), "Toolbar test");
-      gtk_window_set_policy (GTK_WINDOW (window), TRUE, TRUE, TRUE);
+      gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, TRUE);
 
       gtk_signal_connect (GTK_OBJECT (window), "destroy",
                          GTK_SIGNAL_FUNC (destroy_window),
@@ -682,6 +683,12 @@ create_toolbar (void)
 
       gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
 
+      entry = gtk_entry_new ();
+      gtk_widget_show(entry);
+      gtk_toolbar_append_widget (GTK_TOOLBAR (toolbar), NULL, entry);
+
+      gtk_toolbar_append_space (GTK_TOOLBAR (toolbar));
+
       gtk_toolbar_append_item (GTK_TOOLBAR (toolbar),
                               "Small", "Use small spaces",
                               GTK_PIXMAP (new_pixmap ("test.xpm", window->window,