]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/gtkdlgs.cpp
Wrap GtkVBox
[xonotic/netradiant.git] / radiant / gtkdlgs.cpp
index c3aba62b185d1a594c73a6622a6098c988762d0e..e51934392f2c113cf275ef05bd9460e104d21597 100644 (file)
@@ -755,7 +755,7 @@ static void CreateGtkTextEditor(){
                                          G_CALLBACK( editor_delete ), 0 );
        gtk_window_set_default_size( GTK_WINDOW( dlg ), 600, 300 );
 
-       vbox = ui::Widget(gtk_vbox_new( FALSE, 5 ));
+       vbox = ui::VBox( FALSE, 5 );
        gtk_widget_show( vbox );
        gtk_container_add( GTK_CONTAINER( dlg ), GTK_WIDGET( vbox ) );
        gtk_container_set_border_width( GTK_CONTAINER( vbox ), 5 );
@@ -776,14 +776,14 @@ static void CreateGtkTextEditor(){
        gtk_widget_show( hbox );
        gtk_box_pack_start( GTK_BOX( vbox ), GTK_WIDGET( hbox ), FALSE, TRUE, 0 );
 
-       button = ui::Widget(gtk_button_new_with_label( "Close" ));
+       button = ui::Button( "Close" );
        gtk_widget_show( button );
        gtk_box_pack_end( GTK_BOX( hbox ), button, FALSE, FALSE, 0 );
        g_signal_connect( G_OBJECT( button ), "clicked",
                                          G_CALLBACK( editor_close ), dlg );
        gtk_widget_set_usize( button, 60, -2 );
 
-       button = ui::Widget(gtk_button_new_with_label( "Save" ));
+       button = ui::Button( "Save" );
        gtk_widget_show( button );
        gtk_box_pack_end( GTK_BOX( hbox ), button, FALSE, FALSE, 0 );
        g_signal_connect( G_OBJECT( button ), "clicked",