Radiant:
misc... * entity inspector, entity list->'autofocus on selection' buttons: also do FocusAllViews() on clicking them * focus on preferences treeview on 2nd+ call to make text search to work * fixed WindowPositionTracker globally: minus many particular hacks, plus correct wnds positioning in Floating viewports layout * fixed ToggleShown functionality: shown/hidden wnds states are saved and loaded correctly in Floating viewports layout * also save/load XY and Cam viewports visibility states * new preferences->layout icons * fix: stop chaseMouseMotion on mouse button release
This commit is contained in:
@@ -1429,6 +1429,10 @@ void EntityInspector_selectConnected( GtkButton *button, gpointer user_data ){
|
||||
Select_ConnectedEntities( true, true, focus );
|
||||
}
|
||||
|
||||
void EntityInspector_focusSelected( GtkButton *button, gpointer user_data ){
|
||||
FocusAllViews();
|
||||
}
|
||||
|
||||
GtkWidget* EntityInspector_constructWindow( GtkWindow* toplevel ){
|
||||
GtkWidget* vbox = gtk_vbox_new( FALSE, 2 );
|
||||
gtk_widget_show( vbox );
|
||||
@@ -1690,6 +1694,7 @@ GtkWidget* EntityInspector_constructWindow( GtkWindow* toplevel ){
|
||||
gtk_widget_set_tooltip_text( button, "AutoFocus on Selection" );
|
||||
gtk_widget_show( button );
|
||||
g_focusToggleButton = GTK_TOGGLE_BUTTON( button );
|
||||
g_signal_connect( G_OBJECT( button ), "clicked", G_CALLBACK( EntityInspector_focusSelected ), 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user