]> Pileus Git - ~andy/gtk/blobdiff - tests/testentrycompletion.c
tests: Add test for mnemonics in GtkMenuButton
[~andy/gtk] / tests / testentrycompletion.c
index 483010b1f966ba3292797d14c87b9ab138c5efeb..898b8d3bb18f9688950df4313e8399ec8cf54c44 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 <stdlib.h>
 #include <string.h>
 #include <gtk/gtk.h>
@@ -301,7 +299,7 @@ add_with_prop_edit_button (GtkWidget *vbox, GtkWidget *entry, GtkEntryCompletion
 {
        GtkWidget *hbox, *button;
 
-       hbox = gtk_hbox_new (FALSE, 12);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
        gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
 
        gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 0);
@@ -327,7 +325,7 @@ main (int argc, char *argv[])
   gtk_container_set_border_width (GTK_CONTAINER (window), 5);
   g_signal_connect (window, "delete_event", gtk_main_quit, NULL);
   
-  vbox = gtk_vbox_new (FALSE, 2);
+  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);
   gtk_container_add (GTK_CONTAINER (window), vbox);
     
   gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);