Author: jhs Date: Sat Feb 16 17:55:03 2008 New Revision: 3678 URL: http://svn.gnome.org/viewvc/anjuta?rev=3678&view=rev
Log: 2008-02-15 James Liggett <[EMAIL PROTECTED]> * plugins/profiler/plugin.c: (on_select_other_target_button_clicked): Select the new custom target in the list so that the user sees it. Bug 516630 – Selection custom binary in profiler is not user-friendly. Modified: trunk/ChangeLog trunk/plugins/profiler/plugin.c Modified: trunk/plugins/profiler/plugin.c ============================================================================== --- trunk/plugins/profiler/plugin.c (original) +++ trunk/plugins/profiler/plugin.c Sat Feb 16 17:55:03 2008 @@ -423,10 +423,12 @@ GtkTreeView *targets_list_view) { GtkTreeModel *model; + GtkWidget *target_chooser_dialog; GtkTreeIter iter; gchar *selected_target_path; gchar *selected_target_uri; - GtkWidget *target_chooser_dialog; + GtkTreeSelection *selection; + GtkTreePath *new_target_path; model = gtk_tree_view_get_model (targets_list_view); target_chooser_dialog = gtk_file_chooser_dialog_new ("Select Target", @@ -442,14 +444,21 @@ { selected_target_path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (target_chooser_dialog)); selected_target_uri = gnome_vfs_get_uri_from_local_path (selected_target_path); + selection = gtk_tree_view_get_selection (targets_list_view); gtk_list_store_append (GTK_LIST_STORE (model), &iter); gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, selected_target_path, 1, selected_target_uri, -1); + gtk_tree_selection_select_iter (selection, &iter); + new_target_path = gtk_tree_model_get_path (model, &iter); + gtk_tree_view_scroll_to_cell (targets_list_view, new_target_path, NULL, + TRUE, 0.5, 0.0); + g_free (selected_target_path); g_free (selected_target_uri); + gtk_tree_path_free (new_target_path); } gtk_widget_destroy (target_chooser_dialog); _______________________________________________ SVN-commits-list mailing list (read only) http://mail.gnome.org/mailman/listinfo/svn-commits-list Want to limit the commits to a few modules? Go to above URL, log in to edit your options and select the modules ('topics') you want. Module maintainer? It is possible to set the reply-to to your development mailing list. Email [EMAIL PROTECTED] if interested.