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:
Garux
2017-08-02 09:54:33 +03:00
parent 3f1c97ebeb
commit a28b531d84
20 changed files with 82 additions and 32 deletions

View File

@@ -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 );
}
}
}