hbox.show();
auto scr = w = ui::ScrolledWindow();
- gtk_widget_set_size_request( w, 0, 150 );
+ w.dimensions( 0, 150 );
gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW( w ), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC );
hbox.pack_start( w, TRUE, TRUE, 0 );
w.show();
entry = ui::Entry();
entry.show();
table2.attach(entry, {1, 2, 0, 1});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "wavelength", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &WaveLength );
entry = ui::Entry();
entry.show();
table2.attach(entry, {1, 2, 1, 2});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "amplitude", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Amplitude );
entry = ui::Entry();
entry.show();
table2.attach(entry, {1, 2, 2, 3});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "roughness", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Roughness );
spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table2.attach(spin, {1, 2, 3, 4});
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "random", spin );
vbox = ui::VBox( FALSE, 5 );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 1, 2});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "hmin", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Hll );
entry = ui::Entry();
entry.show();
table.attach(entry, {3, 4, 1, 2});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "hmax", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Hur );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 2, 3});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "vmin", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Vll );
entry = ui::Entry();
entry.show();
table.attach(entry, {3, 4, 2, 3});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "vmax", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Vur );
spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 0, 1});
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "nh", spin );
adj = ui::Adjustment( 8, 1, MAX_ROWS, 1, 10, 0 );
spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 1, 2});
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "nv", spin );
check = ui::CheckButton( "Use Bezier patches" );
spin = ui::SpinButton( adj, 1, 0 );
spin.show();
vbox.pack_start( spin, FALSE, TRUE, 0 );
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "sp", spin );
// ^Fishman - End of Snap to grid code.
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 0, 1});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "z01", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z01 );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 1, 2});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "z00", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z00 );
entry = ui::Entry();
entry.show();
table.attach(entry, {3, 4, 0, 1});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "z11", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z11 );
entry = ui::Entry();
entry.show();
table.attach(entry, {3, 4, 1, 2});
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "z10", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &Z10 );
button = ui::Button( "Browse..." );
button.show();
hbox2.pack_start( button, FALSE, FALSE, 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_file_browse", button );
button.connect( "clicked", G_CALLBACK( bitmap_browse ), NULL );
button = ui::Button( "Reload" );
button.show();
hbox2.pack_start( button, FALSE, FALSE, 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_reload", button );
button.connect( "clicked", G_CALLBACK( bitmap_reload ), NULL );
entry = ui::Entry();
entry.show();
hbox2.pack_start( entry, FALSE, FALSE, 0 );
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_black", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &gbmp.black_value );
entry = ui::Entry();
entry.show();
hbox2.pack_start( entry, FALSE, FALSE, 0 );
- gtk_widget_set_size_request( entry, 50, -1 );
+ entry.dimensions( 50, -1 );
g_object_set_data( G_OBJECT( dlg ), "bmp_white", entry );
entry.connect( "focus_out_event", G_CALLBACK( doublevariable_entryfocusout ), &gbmp.white_value );
spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 0, 1}, {GTK_EXPAND, GTK_EXPAND});
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "fix_value", spin );
spin.connect( "focus_out_event", G_CALLBACK( fix_value_entryfocusout ), NULL );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 1, 2}, {GTK_EXPAND, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "fix_range", entry );
entry.connect( "focus_out_event", G_CALLBACK( fix_range_entryfocusout ), NULL );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 2, 3}, {GTK_EXPAND, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "fix_rate", entry );
entry.connect( "focus_out_event", G_CALLBACK( fix_rate_entryfocusout ), NULL );
button = ui::Button( "Free" );
button.show();
table.attach(button, {2, 3, 0, 1}, {GTK_EXPAND, GTK_FILL});
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "fix_free", button );
button.connect( "clicked", G_CALLBACK( fix_free ), NULL );
button = ui::Button( "Free All" );
button.show();
table.attach(button, {2, 3, 1, 2}, {GTK_EXPAND, GTK_FILL});
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "fix_freeall", button );
button.connect( "clicked", G_CALLBACK( fix_freeall ), NULL );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 0, 1}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texture1", entry );
entry.connect( "focus_out_event", G_CALLBACK( texture_entryfocusout ), GINT_TO_POINTER( 0 ) );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 1, 2}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texture2", entry );
entry.connect( "focus_out_event", G_CALLBACK( texture_entryfocusout ), GINT_TO_POINTER( 1 ) );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 2, 3}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texture3", entry );
hbox2 = ui::HBox( FALSE, 5 );
entry = ui::Entry();
entry.show();
table.attach(entry, {0, 1, 1, 2}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texoffsetx", entry );
entry = ui::Entry();
entry.show();
table.attach(entry, {1, 2, 1, 2}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texoffsety", entry );
entry = ui::Entry();
entry.show();
table.attach(entry, {2, 3, 1, 2}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texscalex", entry );
entry = ui::Entry();
entry.show();
table.attach(entry, {3, 4, 1, 2}, {GTK_EXPAND | GTK_FILL, GTK_FILL});
- gtk_widget_set_size_request( entry, 60, -1 );
+ entry.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "texscaley", entry );
button = ui::Button( "OK" );
button.show();
vbox.pack_start( button, FALSE, TRUE, 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions( 60, -1 );
g_object_set_data( G_OBJECT( dlg ), "go", button );
button.connect( "clicked", G_CALLBACK( main_go ), NULL );
button.show();
hbox.pack_start( button, FALSE, FALSE, 0 );
button.connect( "clicked", G_CALLBACK( OnColor2d ), NULL );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
auto aa2check = ui::CheckButton( "Anti-Alias (May not work on some video cards)" );
aa2check.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
// initialize dialog
gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( show2check ), portals.show_2d );
button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( change_clicked ), entry );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
hbox = ui::HBox( FALSE, 5 );
hbox.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
button = ui::Button( "OK" );
button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
strcpy( portals.fn, GlobalRadiant().getMapName() );
char* fn = strrchr( portals.fn, '.' );
ui::Button create_dialog_button( const char* label, GCallback func, gpointer data ){
auto button = ui::Button( label );
- gtk_widget_set_size_request( button , 64, -1 );
+ button.dimensions(64, -1);
button.show();
button.connect( "clicked", func, data );
return button;
window_remove_minmax( window );
- //gtk_widget_set_size_request(window, width, height);
+ //window.dimensions(width, height);
//gtk_window_set_default_size(window, width, height);
//gtk_window_resize(window, width, height);
//GdkGeometry geometry = { width, height, -1, -1, width, height, -1, -1, -1, -1, GDK_GRAVITY_STATIC, };
ui::Widget create_padding( int width, int height ){
ui::Alignment widget = ui::Alignment( 0.0, 0.0, 0.0, 0.0 );
widget.show();
- gtk_widget_set_size_request( widget, width, height );
+ widget.dimensions(width, height);
return widget;
}
{
auto text = ui::TextView(ui::New);
- gtk_widget_set_size_request( text, 0, -1 ); // allow shrinking
+ text.dimensions(0, -1); // allow shrinking
gtk_text_view_set_wrap_mode( text, GTK_WRAP_WORD );
gtk_text_view_set_editable( text, FALSE );
scr.add(text);
ui::Entry DialogEntry_new(){
auto entry = ui::Entry(ui::New);
entry.show();
- gtk_widget_set_size_request( entry , 64, -1 );
+ entry.dimensions(64, -1);
return entry;
}
}
auto spin = ui::SpinButton( ui::Adjustment( value, lower, upper, step, 10, 0 ), step, digits );
spin.show();
- gtk_widget_set_size_request( spin , 64, -1 );
+ spin.dimensions(64, -1);
return spin;
}
{
auto text = ui::TextView(ui::New);
- gtk_widget_set_size_request( text , 0, -1 ); // allow shrinking
+ text.dimensions(0, -1); // allow shrinking
gtk_text_view_set_wrap_mode( text, GTK_WRAP_WORD );
gtk_text_view_set_editable( text, FALSE );
text.show();
vbox.pack_start( button, FALSE, FALSE, 0 );
button.connect( "clicked",
G_CALLBACK( OnApply ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
button = ui::Button( "Close" );
button.show();
vbox.pack_start( button, FALSE, FALSE, 0 );
button.connect( "clicked",
G_CALLBACK( OnClose ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
return dlg;
}
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( editor_close ), dlg );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
button = ui::Button( "Save" );
button.show();
hbox.pack_end(button, FALSE, FALSE, 0);
button.connect( "clicked",
G_CALLBACK( editor_save ), dlg );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
text_editor = dlg;
text_widget = text;
gtk_misc_set_alignment( GTK_MISC( dialog.m_label ), 0.0, 0.5 );
gtk_label_set_justify( dialog.m_label, GTK_JUSTIFY_LEFT );
dialog.m_label.show();
- gtk_widget_set_size_request( dialog.m_label , 200, -1 );
+ dialog.m_label.dimensions(200, -1);
dialog.m_window.add(dialog.m_label);
}
image.show();
window.add(image);
- gtk_widget_set_size_request( window , -1, -1 );
+ window.dimensions(-1, -1);
window.show();
return window;
combo.show();
table.attach(combo, {0, 1, 1, 2}, {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)}, {0, 0});
- gtk_widget_set_size_request( combo , 60, -1 );
+ combo.dimensions(60, -1);
m_pRowCombo = combo;
}
combo.show();
table.attach(combo, {1, 2, 1, 2}, {(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (0)}, {0, 0});
- gtk_widget_set_size_request( combo , 60, -1 );
+ combo.dimensions(60, -1);
m_pColCombo = combo;
}
}
button.show();
table.attach(button, {3, 4, 2, 3}, {GTK_FILL, 0});
button.connect( "clicked", G_CALLBACK( OnBtnPatchFlipX ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
{
auto label = ui::Label( "Vertical Stretch Step" );
button.show();
table.attach(button, {3, 4, 3, 4}, {GTK_FILL, 0});
button.connect( "clicked", G_CALLBACK( OnBtnPatchFlipY ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
{
auto label = ui::Label( "Rotate Step" );
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {0, 1, 0, 1}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
g_object_set_data( G_OBJECT( window ), "hshift_entry", (void *) entry );
// we fill in this data, if no patch is selected the widgets are unmodified when the inspector is raised
// so we need to have at least one initialisation somewhere
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 0, 1}, {0, 0});
- gtk_widget_set_size_request( spin , 10, -1 );
+ spin.dimensions(10, -1);
gtk_widget_set_can_focus( spin, false );
}
{
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {0, 1, 1, 2}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
entry_set_float( entry, g_pi_globals.shift[1] );
auto adj = ui::Adjustment( 0, -8192, 8192, 1, 1, 0 );
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 1, 2}, {0, 0});
- gtk_widget_set_size_request( spin , 10, -1 );
+ spin.dimensions(10, -1);
gtk_widget_set_can_focus( spin, false );
}
{
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {0, 1, 2, 3}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
entry_set_float( entry, g_pi_globals.scale[0] );
auto adj = ui::Adjustment( 0, -1000, 1000, 1, 1, 0 );
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 2, 3}, {0, 0});
- gtk_widget_set_size_request( spin , 10, -1 );
+ spin.dimensions(10, -1);
gtk_widget_set_can_focus( spin, false );
}
{
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {0, 1, 3, 4}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
entry_set_float( entry, g_pi_globals.scale[1] );
auto adj = ui::Adjustment( 0, -1000, 1000, 1, 1, 0 );
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 3, 4}, {0, 0});
- gtk_widget_set_size_request( spin , 10, -1 );
+ spin.dimensions(10, -1);
gtk_widget_set_can_focus( spin, false );
}
{
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {0, 1, 4, 5}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
entry_set_float( entry, g_pi_globals.rotate );
auto adj = ui::Adjustment( 0, -1000, 1000, 1, 1, 0 ); // NOTE: Arnout - this really should be 360 but can't change it anymore as it could break existing maps
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 4, 5}, {0, 0});
- gtk_widget_set_size_request( spin , 10, -1 );
+ spin.dimensions(10, -1);
gtk_widget_set_can_focus( spin, false );
}
}
button.show();
hbox2.pack_end(button, TRUE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( OnBtnPatchAutoCap ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
{
auto button = ui::Button( "CAP" );
button.show();
hbox2.pack_end(button, TRUE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( OnBtnPatchdetails ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
{
auto button = ui::Button( "Set..." );
button.show();
hbox2.pack_end(button, TRUE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( OnBtnPatchreset ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
{
auto button = ui::Button( "Natural" );
button.show();
hbox2.pack_end(button, TRUE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( OnBtnPatchnatural ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
{
auto button = ui::Button( "Fit" );
button.show();
hbox2.pack_end(button, TRUE, FALSE, 0);
button.connect( "clicked", G_CALLBACK( OnBtnPatchfit ), 0 );
- gtk_widget_set_size_request( button , 60, -1 );
+ button.dimensions(60, -1);
}
}
}
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 0, 1}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 64, -1 );
+ spin.dimensions(64, -1);
gtk_spin_button_set_wrap( spin, TRUE );
gtk_widget_grab_focus( spin );
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 1, 2}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 64, -1 );
+ spin.dimensions(64, -1);
gtk_spin_button_set_wrap( spin, TRUE );
g_rotate_dialog.y = spin;
auto spin = ui::SpinButton( adj, 1, 0 );
spin.show();
table.attach(spin, {1, 2, 2, 3}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 64, -1 );
+ spin.dimensions(64, -1);
gtk_spin_button_set_wrap( spin, TRUE );
g_rotate_dialog.z = spin;
m_hshiftSpinner.connect( spin );
spin.show();
table.attach(spin, {1, 2, 0, 1}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 60, -1 );
+ spin.dimensions(60, -1);
}
{
ui::Widget label = ui::Label( "Step" );
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {3, 4, 0, 1}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
m_hshiftIncrement.m_entry = entry;
m_hshiftEntry.connect( entry );
}
m_vshiftSpinner.connect( spin );
spin.show();
table.attach(spin, {1, 2, 1, 2}, {GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 60, -1 );
+ spin.dimensions(60, -1);
}
{
ui::Widget label = ui::Label( "Step" );
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {3, 4, 1, 2}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
m_vshiftIncrement.m_entry = entry;
m_vshiftEntry.connect( entry );
}
m_hscaleSpinner.connect( spin );
spin.show();
table.attach(spin, {1, 2, 2, 3}, {GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 60, -1 );
+ spin.dimensions(60, -1);
}
{
ui::Widget label = ui::Label( "Step" );
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {3, 4, 2, 3}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
m_hscaleIncrement.m_entry = entry;
m_hscaleEntry.connect( entry );
}
m_vscaleSpinner.connect( spin );
spin.show();
table.attach(spin, {1, 2, 3, 4}, {GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 60, -1 );
+ spin.dimensions(60, -1);
}
{
ui::Widget label = ui::Label( "Step" );
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {3, 4, 3, 4}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
m_vscaleIncrement.m_entry = entry;
m_vscaleEntry.connect( entry );
}
m_rotateSpinner.connect( spin );
spin.show();
table.attach(spin, {1, 2, 4, 5}, {GTK_FILL, 0});
- gtk_widget_set_size_request( spin , 60, -1 );
+ spin.dimensions(60, -1);
gtk_spin_button_set_wrap( spin, TRUE );
}
{
auto entry = ui::Entry(ui::New);
entry.show();
table.attach(entry, {3, 4, 4, 5}, {GTK_FILL, 0});
- gtk_widget_set_size_request( entry , 50, -1 );
+ entry.dimensions(50, -1);
m_rotateIncrement.m_entry = entry;
m_rotateEntry.connect( entry );
}
table.attach(button, {0, 1, 1, 2}, {GTK_EXPAND | GTK_FILL, 0});
button.connect( "clicked",
G_CALLBACK( OnBtnAxial ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
}
{
ui::Widget button = ui::Button( "Fit" );
table.attach(button, {1, 2, 1, 2}, {GTK_EXPAND | GTK_FILL, 0});
button.connect( "clicked",
G_CALLBACK( OnBtnFaceFit ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
}
{
ui::Widget button = ui::Button( "CAP" );
table.attach(button, {0, 1, 3, 4}, {GTK_EXPAND | GTK_FILL, 0});
button.connect( "clicked",
G_CALLBACK( OnBtnPatchdetails ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
}
{
ui::Widget button = ui::Button( "Set..." );
table.attach(button, {1, 2, 3, 4}, {GTK_EXPAND | GTK_FILL, 0});
button.connect( "clicked",
G_CALLBACK( OnBtnPatchreset ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
}
{
ui::Widget button = ui::Button( "Natural" );
table.attach(button, {2, 3, 3, 4}, {GTK_EXPAND | GTK_FILL, 0});
button.connect( "clicked",
G_CALLBACK( OnBtnPatchnatural ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
}
{
ui::Widget button = ui::Button( "Fit" );
table.attach(button, {3, 4, 3, 4}, {GTK_EXPAND | GTK_FILL, 0});
button.connect( "clicked",
G_CALLBACK( OnBtnPatchFit ), 0 );
- gtk_widget_set_size_request( button, 60, -1 );
+ button.dimensions(60, -1);
}
{
auto spin = ui::SpinButton( ui::Adjustment( 1, 0, 1 << 16, 1, 10, 0 ), 0, 6 );
spin.show();
table.attach(spin, {2, 3, 1, 2}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions(60, -1);
AddDialogData( *GTK_SPIN_BUTTON( spin ), m_fitHorizontal );
}
{
auto spin = ui::SpinButton( ui::Adjustment( 1, 0, 1 << 16, 1, 10, 0 ), 0, 6 );
spin.show();
table.attach(spin, {3, 4, 1, 2}, {GTK_EXPAND | GTK_FILL, 0});
- gtk_widget_set_size_request( spin, 60, -1 );
+ spin.dimensions(60, -1);
AddDialogData( *GTK_SPIN_BUTTON( spin ), m_fitVertical );
}
}
gtk_widget_set_can_focus( TexTool::g_textoolWin, true );
// <-- end stuff...
TexTool::g_textoolWin.show();
- gtk_widget_set_size_request( TexTool::g_textoolWin, -1, 240 ); //Yeah!
+ TexTool::g_textoolWin.dimensions( -1, 240 ); //Yeah!
frame.add(TexTool::g_textoolWin);
TexTool::g_textoolWin.connect( "size_allocate", G_CALLBACK( TexTool::size_allocate ), NULL );
m_btn_right.add(m_arrow_right);
// workaround. the size of the tag frame depends of the requested size of the arrow buttons.
- gtk_widget_set_size_request( m_arrow_left, -1, 68 );
- gtk_widget_set_size_request( m_arrow_right, -1, 68 );
+ m_arrow_left.dimensions(-1, 68);
+ m_arrow_right.dimensions(-1, 68);
frame_table.attach(m_btn_left, {1, 2, 1, 2}, {GTK_SHRINK, GTK_EXPAND});
frame_table.attach(m_btn_right, {1, 2, 2, 3}, {GTK_SHRINK, GTK_EXPAND});