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:
@@ -142,6 +142,10 @@ void entitylist_treeviewcolumn_celldatafunc( GtkTreeViewColumn* column, GtkCellR
|
||||
}
|
||||
}
|
||||
|
||||
void entitylist_focusSelected( GtkButton *button, gpointer user_data ){
|
||||
FocusAllViews();
|
||||
}
|
||||
|
||||
static gboolean entitylist_tree_select( GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer data ){
|
||||
GtkTreeIter iter;
|
||||
gtk_tree_model_get_iter( model, &iter, path );
|
||||
@@ -339,6 +343,7 @@ void EntityList_constructWindow( GtkWindow* main_window ){
|
||||
gtk_widget_show( check );
|
||||
gtk_box_pack_start( GTK_BOX( vbox ), check, FALSE, FALSE, 0 );
|
||||
getEntityList().m_check = check;
|
||||
g_signal_connect( G_OBJECT( check ), "clicked", G_CALLBACK( entitylist_focusSelected ), 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user