Commit bb30eeb2 authored by James Liggett's avatar James Liggett Committed by Johannes Schmid

reviewed by: Johannes Schmid <jhs@gnome.org>

2007-11-08  James Liggett  <jrliggett@cox.net>

	reviewed by: Johannes Schmid <jhs@gnome.org>

	* libanjuta/anjuta-async-command.c: (anjuta_async_command_init),
	(anjuta_async_command_finalize),
	(anjuta_async_command_notification_poll),
	(anjuta_async_command_thread), (start_command),
	(notify_data_arrived), (notify_complete),
	(anjuta_async_command_class_init),
	(anjuta_async_command_set_error_message),
	(anjuta_async_command_get_error_message),
	(anjuta_async_command_lock), (anjuta_async_command_unlock):
	* libanjuta/anjuta-async-command.h:
	* libanjuta/anjuta-command.c: (anjuta_command_init),
	(anjuta_command_finalize), (anjuta_command_class_init),
	(anjuta_command_start), (anjuta_command_notify_data_arrived),
	(anjuta_command_notify_complete),
	(anjuta_command_set_error_message),
	(anjuta_command_get_error_message):
	* libanjuta/anjuta-command.h:
	* libanjuta/anjuta-glade-catalog.c:
	* libanjuta/anjuta-glade.xml:
	* libanjuta/anjuta-vcs-status-tree-view.c:
	(on_selected_column_toggled),
	(anjuta_vcs_status_tree_view_create_columns),
	(anjuta_vcs_status_tree_view_init),
	(anjuta_vcs_status_tree_view_finalize),
	(anjuta_vcs_status_tree_view_set_property),
	(anjuta_vcs_status_tree_view_get_property),
	(anjuta_vcs_status_tree_view_class_init),
	(anjuta_vcs_status_tree_view_new),
	(anjuta_vcs_status_tree_view_destroy),
	(anjuta_vcs_status_tree_view_add), (select_all_paths),
	(anjuta_vcs_status_tree_view_select_all), (unselect_all_paths),
	(anjuta_vcs_status_tree_view_unselect_all),
	(create_selected_paths_list),
	(anjuta_vcs_status_tree_view_get_selected):
	* libanjuta/anjuta-vcs-status-tree-view.h:
	* libanjuta/anjuta-widgets.c: (glade_module_register_widgets):
	* libanjuta/anjuta-widgets.h:
	* plugins/subversion/subversion-add-dialog.c:
	(on_add_command_finished), (on_subversion_add_response),
	(subversion_add_dialog), (on_menu_subversion_add),
	(on_fm_subversion_add):
	* plugins/subversion/subversion-add-dialog.h:
	* plugins/subversion/subversion-commit-dialog.c:
	(on_commit_command_finished), (on_subversion_commit_response),
	(subversion_commit_dialog), (on_menu_subversion_commit),
	(on_fm_subversion_commit):
	* plugins/subversion/subversion-commit-dialog.h:
	* plugins/subversion/subversion-copy-dialog.c:
	(on_copy_other_revision_radio_toggled),
	(on_copy_browse_button_clicked), (on_copy_dest_entry_focus_in),
	(on_copy_command_finished), (on_subversion_copy_response),
	(subversion_copy_dialog), (on_menu_subversion_copy),
	(on_fm_subversion_copy):
	* plugins/subversion/subversion-copy-dialog.h:
	* plugins/subversion/subversion-diff-dialog.c: (on_editor_destroy),
	(on_subversion_diff_response), (subversion_diff_dialog),
	(on_menu_subversion_diff), (on_fm_subversion_diff):
	* plugins/subversion/subversion-diff-dialog.h:
	* plugins/subversion/subversion-log-dialog.c:
	(on_diff_selected_column_toggled), (create_columns),
	(on_log_command_finished), (on_log_view_button_clicked),
	(on_cat_command_data_arrived), (on_cat_command_finished),
	(on_log_view_selected_button_clicked), (get_selected_revisions),
	(on_log_diff_selected_button_clicked),
	(on_log_diff_previous_button_clicked),
	(on_subversion_log_vbox_destroy),
	(on_log_changes_view_row_selected), (subversion_log_window_create),
	(on_menu_subversion_log), (on_fm_subversion_log),
	(subversion_log_set_whole_project_sensitive):
	* plugins/subversion/subversion-log-dialog.h:
	* plugins/subversion/subversion-merge-dialog.c:
	(on_merge_command_finished), (on_subversion_merge_response),
	(on_merge_first_path_browse_button_clicked),
	(on_merge_second_path_browse_button_clicked),
	(on_merge_use_first_path_check_toggled),
	(on_merge_start_revision_radio_toggled),
	(on_merge_end_revision_radio_toggled), (subversion_merge_dialog),
	(on_menu_subversion_merge):
	* plugins/subversion/subversion-merge-dialog.h:
	* plugins/subversion/subversion-remove-dialog.c:
	(on_remove_command_finished),
	(on_remove_path_browse_button_clicked),
	(on_subversion_remove_response), (subversion_remove_dialog),
	(on_menu_subversion_remove), (on_fm_subversion_remove):
	* plugins/subversion/subversion-remove-dialog.h:
	* plugins/subversion/subversion-resolve-dialog.c:
	(on_resolve_command_finished), (on_subversion_resolve_response),
	(subversion_resolve_dialog), (on_menu_subversion_resolve):
	* plugins/subversion/subversion-resolve-dialog.h:
	* plugins/subversion/subversion-revert-dialog.c:
	(on_revert_command_finished), (on_subversion_revert_response),
	(subversion_revert_dialog), (on_menu_subversion_revert):
	* plugins/subversion/subversion-revert-dialog.h:
	* plugins/subversion/subversion-switch-dialog.c:
	(on_switch_other_revision_radio_toggled),
	(on_switch_command_finished), (on_subversion_switch_response),
	(subversion_switch_dialog), (on_menu_subversion_switch):
	* plugins/subversion/subversion-switch-dialog.h:
	* plugins/subversion/subversion-ui-utils.c: (subversion_data_new),
	(subversion_data_free), (on_mesg_view_destroy),
	(create_message_view), (check_filename), (get_log_from_textview),
	(pulse_timer), (on_pulse_timer_destroyed),
	(status_bar_progress_pulse), (clear_status_bar_progress_pulse),
	(report_errors), (on_status_command_finished),
	(on_status_command_data_arrived), (on_command_info_arrived),
	(select_all_status_items), (clear_all_status_selections),
	(init_whole_project), (on_whole_project_toggled),
	(send_diff_command_output_to_editor), (on_diff_command_finished),
	(stop_status_bar_progress_pulse):
	* plugins/subversion/subversion-ui-utils.h:
	* plugins/subversion/subversion-update-dialog.c:
	(on_update_command_finished), (on_subversion_update_response),
	(subversion_update_dialog), (on_menu_subversion_update),
	(on_fm_subversion_update):
	* plugins/subversion/subversion-update-dialog.h:
	* plugins/subversion/svn-add-command.c: (svn_add_command_init),
	(svn_add_command_finalize), (svn_add_command_run),
	(svn_add_command_class_init), (svn_add_command_new),
	(svn_add_command_destroy):
	* plugins/subversion/svn-add-command.h:
	* plugins/subversion/svn-cat-command.c: (svn_cat_command_init),
	(svn_cat_command_finalize), (svn_cat_command_run),
	(svn_cat_command_class_init), (svn_cat_command_new),
	(svn_cat_command_destroy), (svn_cat_command_get_output):
	* plugins/subversion/svn-cat-command.h:
	* plugins/subversion/svn-command.c: (svn_command_acquire_ui_lock),
	(svn_command_release_ui_lock), (simple_prompt),
	(ssl_server_trust_prompt), (svn_auth_simple_prompt_func_cb),
	(svn_auth_ssl_server_trust_prompt_func_cb),
	(svn_auth_ssl_client_cert_prompt_func_cb),
	(svn_auth_ssl_client_cert_pw_prompt_func_cb), (on_svn_notify),
	(svn_command_init), (svn_command_finalize),
	(svn_command_class_init), (svn_command_push_info),
	(svn_command_get_info_queue), (svn_command_set_error),
	(svn_command_get_client_context), (svn_command_get_pool),
	(svn_command_lock_ui), (svn_command_unlock_ui),
	(svn_command_get_revision), (svn_command_copy_path_list),
	(svn_command_free_path_list):
	* plugins/subversion/svn-command.h:
	* plugins/subversion/svn-commit-command.c: (on_log_callback),
	(svn_commit_command_init), (svn_commit_command_finalize),
	(svn_commit_command_run), (svn_commit_command_class_init),
	(svn_commit_command_new), (svn_commit_command_destroy):
	* plugins/subversion/svn-commit-command.h:
	* plugins/subversion/svn-copy-command.c: (on_log_callback),
	(svn_copy_command_init), (svn_copy_command_finalize),
	(svn_copy_command_run), (svn_copy_command_class_init),
	(svn_copy_command_new), (svn_copy_command_destroy):
	* plugins/subversion/svn-copy-command.h:
	* plugins/subversion/svn-diff-command.c: (svn_diff_command_init),
	(svn_diff_command_finalize), (svn_diff_command_run),
	(svn_diff_command_class_init), (svn_diff_command_new),
	(svn_diff_command_destroy), (svn_diff_command_get_output):
	* plugins/subversion/svn-diff-command.h:
	* plugins/subversion/svn-log-command.c: (svn_log_command_init),
	(svn_log_command_finalize), (log_callback), (svn_log_command_run),
	(svn_log_command_class_init), (svn_log_command_new),
	(svn_log_command_destroy), (svn_log_command_get_entry_queue):
	* plugins/subversion/svn-log-command.h:
	* plugins/subversion/svn-log-entry.c: (svn_log_entry_init),
	(svn_log_entry_finalize), (svn_log_entry_class_init),
	(strip_whitespace), (svn_log_entry_new), (svn_log_entry_destroy),
	(svn_log_entry_get_author), (svn_log_entry_get_date),
	(svn_log_entry_get_revision), (svn_log_entry_get_short_log),
	(svn_log_entry_get_full_log):
	* plugins/subversion/svn-log-entry.h:
	* plugins/subversion/svn-merge-command.c: (svn_merge_command_init),
	(svn_merge_command_finalize), (svn_merge_command_run),
	(svn_merge_command_class_init), (svn_merge_command_new),
	(svn_merge_command_destroy):
	* plugins/subversion/svn-merge-command.h:
	* plugins/subversion/svn-remove-command.c: (on_log_callback),
	(svn_remove_command_init), (svn_remove_command_finalize),
	(svn_remove_command_run), (svn_remove_command_class_init),
	(svn_remove_command_new), (svn_remove_command_destroy),
	(svn_remove_command_get_path):
	* plugins/subversion/svn-remove-command.h:
	* plugins/subversion/svn-resolve-command.c:
	(svn_resolve_command_init), (svn_resolve_command_finalize),
	(svn_resolve_command_run), (svn_resolve_command_class_init),
	(svn_resolve_command_new), (svn_resolve_command_destroy):
	* plugins/subversion/svn-resolve-command.h:
	* plugins/subversion/svn-revert-command.c:
	(svn_revert_command_init), (svn_revert_command_finalize),
	(svn_revert_command_run), (svn_revert_command_class_init),
	(svn_revert_command_new), (svn_revert_command_destroy):
	* plugins/subversion/svn-revert-command.h:
	* plugins/subversion/svn-status-command.c:
	(svn_status_command_init), (svn_status_command_finalize),
	(on_svn_status_notify), (svn_status_command_run),
	(svn_status_command_class_init), (svn_status_command_new),
	(svn_status_command_destroy),
	(svn_status_command_get_status_queue):
	* plugins/subversion/svn-status-command.h:
	* plugins/subversion/svn-status.c: (svn_status_init),
	(svn_status_finalize), (svn_status_class_init), (svn_status_new),
	(svn_status_destroy), (svn_status_get_path),
	(svn_status_get_vcs_status):
	* plugins/subversion/svn-status.h:
	* plugins/subversion/svn-switch-command.c:
	(svn_switch_command_init), (svn_switch_command_finalize),
	(svn_switch_command_run), (svn_switch_command_class_init),
	(svn_switch_command_new), (svn_switch_command_destroy):
	* plugins/subversion/svn-switch-command.h:
	* plugins/subversion/svn-update-command.c:
	(svn_update_command_init), (svn_update_command_finalize),
	(svn_update_command_run), (svn_update_command_class_init),
	(svn_update_command_new), (svn_update_command_destroy):
	* plugins/subversion/svn-update-command.h:

	Now really committed all files from James patch (#457477)

svn path=/trunk/; revision=3290
parent dc148435
2007-11-08 James Liggett <jrliggett@cox.net>
reviewed by: Johannes Schmid <jhs@gnome.org>
* libanjuta/anjuta-async-command.c: (anjuta_async_command_init),
(anjuta_async_command_finalize),
(anjuta_async_command_notification_poll),
(anjuta_async_command_thread), (start_command),
(notify_data_arrived), (notify_complete),
(anjuta_async_command_class_init),
(anjuta_async_command_set_error_message),
(anjuta_async_command_get_error_message),
(anjuta_async_command_lock), (anjuta_async_command_unlock):
* libanjuta/anjuta-async-command.h:
* libanjuta/anjuta-command.c: (anjuta_command_init),
(anjuta_command_finalize), (anjuta_command_class_init),
(anjuta_command_start), (anjuta_command_notify_data_arrived),
(anjuta_command_notify_complete),
(anjuta_command_set_error_message),
(anjuta_command_get_error_message):
* libanjuta/anjuta-command.h:
* libanjuta/anjuta-glade-catalog.c:
* libanjuta/anjuta-glade.xml:
* libanjuta/anjuta-vcs-status-tree-view.c:
(on_selected_column_toggled),
(anjuta_vcs_status_tree_view_create_columns),
(anjuta_vcs_status_tree_view_init),
(anjuta_vcs_status_tree_view_finalize),
(anjuta_vcs_status_tree_view_set_property),
(anjuta_vcs_status_tree_view_get_property),
(anjuta_vcs_status_tree_view_class_init),
(anjuta_vcs_status_tree_view_new),
(anjuta_vcs_status_tree_view_destroy),
(anjuta_vcs_status_tree_view_add), (select_all_paths),
(anjuta_vcs_status_tree_view_select_all), (unselect_all_paths),
(anjuta_vcs_status_tree_view_unselect_all),
(create_selected_paths_list),
(anjuta_vcs_status_tree_view_get_selected):
* libanjuta/anjuta-vcs-status-tree-view.h:
* libanjuta/anjuta-widgets.c: (glade_module_register_widgets):
* libanjuta/anjuta-widgets.h:
* plugins/subversion/subversion-add-dialog.c:
(on_add_command_finished), (on_subversion_add_response),
(subversion_add_dialog), (on_menu_subversion_add),
(on_fm_subversion_add):
* plugins/subversion/subversion-add-dialog.h:
* plugins/subversion/subversion-commit-dialog.c:
(on_commit_command_finished), (on_subversion_commit_response),
(subversion_commit_dialog), (on_menu_subversion_commit),
(on_fm_subversion_commit):
* plugins/subversion/subversion-commit-dialog.h:
* plugins/subversion/subversion-copy-dialog.c:
(on_copy_other_revision_radio_toggled),
(on_copy_browse_button_clicked), (on_copy_dest_entry_focus_in),
(on_copy_command_finished), (on_subversion_copy_response),
(subversion_copy_dialog), (on_menu_subversion_copy),
(on_fm_subversion_copy):
* plugins/subversion/subversion-copy-dialog.h:
* plugins/subversion/subversion-diff-dialog.c: (on_editor_destroy),
(on_subversion_diff_response), (subversion_diff_dialog),
(on_menu_subversion_diff), (on_fm_subversion_diff):
* plugins/subversion/subversion-diff-dialog.h:
* plugins/subversion/subversion-log-dialog.c:
(on_diff_selected_column_toggled), (create_columns),
(on_log_command_finished), (on_log_view_button_clicked),
(on_cat_command_data_arrived), (on_cat_command_finished),
(on_log_view_selected_button_clicked), (get_selected_revisions),
(on_log_diff_selected_button_clicked),
(on_log_diff_previous_button_clicked),
(on_subversion_log_vbox_destroy),
(on_log_changes_view_row_selected), (subversion_log_window_create),
(on_menu_subversion_log), (on_fm_subversion_log),
(subversion_log_set_whole_project_sensitive):
* plugins/subversion/subversion-log-dialog.h:
* plugins/subversion/subversion-merge-dialog.c:
(on_merge_command_finished), (on_subversion_merge_response),
(on_merge_first_path_browse_button_clicked),
(on_merge_second_path_browse_button_clicked),
(on_merge_use_first_path_check_toggled),
(on_merge_start_revision_radio_toggled),
(on_merge_end_revision_radio_toggled), (subversion_merge_dialog),
(on_menu_subversion_merge):
* plugins/subversion/subversion-merge-dialog.h:
* plugins/subversion/subversion-remove-dialog.c:
(on_remove_command_finished),
(on_remove_path_browse_button_clicked),
(on_subversion_remove_response), (subversion_remove_dialog),
(on_menu_subversion_remove), (on_fm_subversion_remove):
* plugins/subversion/subversion-remove-dialog.h:
* plugins/subversion/subversion-resolve-dialog.c:
(on_resolve_command_finished), (on_subversion_resolve_response),
(subversion_resolve_dialog), (on_menu_subversion_resolve):
* plugins/subversion/subversion-resolve-dialog.h:
* plugins/subversion/subversion-revert-dialog.c:
(on_revert_command_finished), (on_subversion_revert_response),
(subversion_revert_dialog), (on_menu_subversion_revert):
* plugins/subversion/subversion-revert-dialog.h:
* plugins/subversion/subversion-switch-dialog.c:
(on_switch_other_revision_radio_toggled),
(on_switch_command_finished), (on_subversion_switch_response),
(subversion_switch_dialog), (on_menu_subversion_switch):
* plugins/subversion/subversion-switch-dialog.h:
* plugins/subversion/subversion-ui-utils.c: (subversion_data_new),
(subversion_data_free), (on_mesg_view_destroy),
(create_message_view), (check_filename), (get_log_from_textview),
(pulse_timer), (on_pulse_timer_destroyed),
(status_bar_progress_pulse), (clear_status_bar_progress_pulse),
(report_errors), (on_status_command_finished),
(on_status_command_data_arrived), (on_command_info_arrived),
(select_all_status_items), (clear_all_status_selections),
(init_whole_project), (on_whole_project_toggled),
(send_diff_command_output_to_editor), (on_diff_command_finished),
(stop_status_bar_progress_pulse):
* plugins/subversion/subversion-ui-utils.h:
* plugins/subversion/subversion-update-dialog.c:
(on_update_command_finished), (on_subversion_update_response),
(subversion_update_dialog), (on_menu_subversion_update),
(on_fm_subversion_update):
* plugins/subversion/subversion-update-dialog.h:
* plugins/subversion/svn-add-command.c: (svn_add_command_init),
(svn_add_command_finalize), (svn_add_command_run),
(svn_add_command_class_init), (svn_add_command_new),
(svn_add_command_destroy):
* plugins/subversion/svn-add-command.h:
* plugins/subversion/svn-cat-command.c: (svn_cat_command_init),
(svn_cat_command_finalize), (svn_cat_command_run),
(svn_cat_command_class_init), (svn_cat_command_new),
(svn_cat_command_destroy), (svn_cat_command_get_output):
* plugins/subversion/svn-cat-command.h:
* plugins/subversion/svn-command.c: (svn_command_acquire_ui_lock),
(svn_command_release_ui_lock), (simple_prompt),
(ssl_server_trust_prompt), (svn_auth_simple_prompt_func_cb),
(svn_auth_ssl_server_trust_prompt_func_cb),
(svn_auth_ssl_client_cert_prompt_func_cb),
(svn_auth_ssl_client_cert_pw_prompt_func_cb), (on_svn_notify),
(svn_command_init), (svn_command_finalize),
(svn_command_class_init), (svn_command_push_info),
(svn_command_get_info_queue), (svn_command_set_error),
(svn_command_get_client_context), (svn_command_get_pool),
(svn_command_lock_ui), (svn_command_unlock_ui),
(svn_command_get_revision), (svn_command_copy_path_list),
(svn_command_free_path_list):
* plugins/subversion/svn-command.h:
* plugins/subversion/svn-commit-command.c: (on_log_callback),
(svn_commit_command_init), (svn_commit_command_finalize),
(svn_commit_command_run), (svn_commit_command_class_init),
(svn_commit_command_new), (svn_commit_command_destroy):
* plugins/subversion/svn-commit-command.h:
* plugins/subversion/svn-copy-command.c: (on_log_callback),
(svn_copy_command_init), (svn_copy_command_finalize),
(svn_copy_command_run), (svn_copy_command_class_init),
(svn_copy_command_new), (svn_copy_command_destroy):
* plugins/subversion/svn-copy-command.h:
* plugins/subversion/svn-diff-command.c: (svn_diff_command_init),
(svn_diff_command_finalize), (svn_diff_command_run),
(svn_diff_command_class_init), (svn_diff_command_new),
(svn_diff_command_destroy), (svn_diff_command_get_output):
* plugins/subversion/svn-diff-command.h:
* plugins/subversion/svn-log-command.c: (svn_log_command_init),
(svn_log_command_finalize), (log_callback), (svn_log_command_run),
(svn_log_command_class_init), (svn_log_command_new),
(svn_log_command_destroy), (svn_log_command_get_entry_queue):
* plugins/subversion/svn-log-command.h:
* plugins/subversion/svn-log-entry.c: (svn_log_entry_init),
(svn_log_entry_finalize), (svn_log_entry_class_init),
(strip_whitespace), (svn_log_entry_new), (svn_log_entry_destroy),
(svn_log_entry_get_author), (svn_log_entry_get_date),
(svn_log_entry_get_revision), (svn_log_entry_get_short_log),
(svn_log_entry_get_full_log):
* plugins/subversion/svn-log-entry.h:
* plugins/subversion/svn-merge-command.c: (svn_merge_command_init),
(svn_merge_command_finalize), (svn_merge_command_run),
(svn_merge_command_class_init), (svn_merge_command_new),
(svn_merge_command_destroy):
* plugins/subversion/svn-merge-command.h:
* plugins/subversion/svn-remove-command.c: (on_log_callback),
(svn_remove_command_init), (svn_remove_command_finalize),
(svn_remove_command_run), (svn_remove_command_class_init),
(svn_remove_command_new), (svn_remove_command_destroy),
(svn_remove_command_get_path):
* plugins/subversion/svn-remove-command.h:
* plugins/subversion/svn-resolve-command.c:
(svn_resolve_command_init), (svn_resolve_command_finalize),
(svn_resolve_command_run), (svn_resolve_command_class_init),
(svn_resolve_command_new), (svn_resolve_command_destroy):
* plugins/subversion/svn-resolve-command.h:
* plugins/subversion/svn-revert-command.c:
(svn_revert_command_init), (svn_revert_command_finalize),
(svn_revert_command_run), (svn_revert_command_class_init),
(svn_revert_command_new), (svn_revert_command_destroy):
* plugins/subversion/svn-revert-command.h:
* plugins/subversion/svn-status-command.c:
(svn_status_command_init), (svn_status_command_finalize),
(on_svn_status_notify), (svn_status_command_run),
(svn_status_command_class_init), (svn_status_command_new),
(svn_status_command_destroy),
(svn_status_command_get_status_queue):
* plugins/subversion/svn-status-command.h:
* plugins/subversion/svn-status.c: (svn_status_init),
(svn_status_finalize), (svn_status_class_init), (svn_status_new),
(svn_status_destroy), (svn_status_get_path),
(svn_status_get_vcs_status):
* plugins/subversion/svn-status.h:
* plugins/subversion/svn-switch-command.c:
(svn_switch_command_init), (svn_switch_command_finalize),
(svn_switch_command_run), (svn_switch_command_class_init),
(svn_switch_command_new), (svn_switch_command_destroy):
* plugins/subversion/svn-switch-command.h:
* plugins/subversion/svn-update-command.c:
(svn_update_command_init), (svn_update_command_finalize),
(svn_update_command_run), (svn_update_command_class_init),
(svn_update_command_new), (svn_update_command_destroy):
* plugins/subversion/svn-update-command.h:
Now really committed all files from James patch (#457477)
2007-11-08 Johannes Schmid <jhs@gnome.org>
* TODO.tasks: Updated
......
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* anjuta
* Copyright (C) James Liggett 2007 <jrliggett@cox.net>
*
* Portions based on the original Subversion plugin
* Copyright (C) Johannes Schmid 2005
*
* anjuta is free software.
*
* You may redistribute it and/or modify it under the terms of the
* GNU General Public License, as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* anjuta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with anjuta. If not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#include "anjuta-async-command.h"
struct _AnjutaAsyncCommandPriv
{
GMutex *mutex;
guint return_code;
gboolean complete;
gboolean new_data_arrived;
};
G_DEFINE_TYPE (AnjutaAsyncCommand, anjuta_async_command, ANJUTA_TYPE_COMMAND);
static void
anjuta_async_command_init (AnjutaAsyncCommand *self)
{
self->priv = g_new0 (AnjutaAsyncCommandPriv, 1);
self->priv->mutex = g_mutex_new ();
}
static void
anjuta_async_command_finalize (GObject *object)
{
AnjutaAsyncCommand *self;
self = ANJUTA_ASYNC_COMMAND (object);
g_mutex_free (self->priv->mutex);
g_idle_remove_by_data (self);
g_free (self->priv);
G_OBJECT_CLASS (anjuta_async_command_parent_class)->finalize (object);
}
static gboolean
anjuta_async_command_notification_poll (AnjutaCommand *command)
{
AnjutaAsyncCommand *self;
self = ANJUTA_ASYNC_COMMAND (command);
if (self->priv->new_data_arrived &&
g_mutex_trylock (self->priv->mutex))
{
g_signal_emit_by_name (command, "data-arrived");
g_mutex_unlock (self->priv->mutex);
self->priv->new_data_arrived = FALSE;
}
if (self->priv->complete)
{
g_signal_emit_by_name (command, "command-finished",
self->priv->return_code);
return FALSE;
}
else
return TRUE;
}
static gpointer
anjuta_async_command_thread (AnjutaCommand *command)
{
guint return_code;
return_code = ANJUTA_COMMAND_GET_CLASS (command)->run (command);
anjuta_command_notify_complete (command, return_code);
return NULL;
}
static void
start_command (AnjutaCommand *command)
{
g_idle_add ((GSourceFunc) anjuta_async_command_notification_poll,
command);
g_thread_create ((GThreadFunc) anjuta_async_command_thread,
command, FALSE, NULL);
}
static void
notify_data_arrived (AnjutaCommand *command)
{
AnjutaAsyncCommand *self;
self = ANJUTA_ASYNC_COMMAND (command);
self->priv->new_data_arrived = TRUE;
}
static void
notify_complete (AnjutaCommand *command, guint return_code)
{
AnjutaAsyncCommand *self;
self = ANJUTA_ASYNC_COMMAND (command);
self->priv->complete = TRUE;
self->priv->return_code = return_code;
}
static void
anjuta_async_command_class_init (AnjutaAsyncCommandClass *klass)
{
GObjectClass* object_class = G_OBJECT_CLASS (klass);
AnjutaCommandClass* parent_class = ANJUTA_COMMAND_CLASS (klass);
object_class->finalize = anjuta_async_command_finalize;
parent_class->start = start_command;
parent_class->notify_data_arrived = notify_data_arrived;
parent_class->notify_complete = notify_complete;
}
void
anjuta_async_command_set_error_message (AnjutaCommand *command,
gchar *error_message)
{
anjuta_async_command_lock (ANJUTA_ASYNC_COMMAND (command));
ANJUTA_COMMAND_GET_CLASS (command)->set_error_message (command,
error_message);
anjuta_async_command_unlock (ANJUTA_ASYNC_COMMAND (command));
}
gchar *
anjuta_async_command_get_error_message (AnjutaCommand *command)
{
gchar *error_message;
anjuta_async_command_lock (ANJUTA_ASYNC_COMMAND (command));
error_message = ANJUTA_COMMAND_GET_CLASS (command)->get_error_message (command);
anjuta_async_command_unlock (ANJUTA_ASYNC_COMMAND (command));
return error_message;
}
void
anjuta_async_command_lock (AnjutaAsyncCommand *self)
{
g_mutex_lock (self->priv->mutex);
}
void
anjuta_async_command_unlock (AnjutaAsyncCommand *self)
{
g_mutex_unlock (self->priv->mutex);
}
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* anjuta
* Copyright (C) James Liggett 2007 <jrliggett@cox.net>
*
* Portions based on the original Subversion plugin
* Copyright (C) Johannes Schmid 2005
*
* anjuta is free software.
*
* You may redistribute it and/or modify it under the terms of the
* GNU General Public License, as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* anjuta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with anjuta. If not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#ifndef _ANJUTA_ASYNC_COMMAND_H_
#define _ANJUTA_ASYNC_COMMAND_H_
#include <glib-object.h>
#include "anjuta-command.h"
G_BEGIN_DECLS
#define ANJUTA_TYPE_ASYNC_COMMAND (anjuta_async_command_get_type ())
#define ANJUTA_ASYNC_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_ASYNC_COMMAND, AnjutaAsyncCommand))
#define ANJUTA_ASYNC_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_ASYNC_COMMAND, AnjutaAsyncCommandClass))
#define IS_ANJUTA_ASYNC_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_ASYNC_COMMAND))
#define IS_ANJUTA_ASYNC_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_ASYNC_COMMAND))
#define ANJUTA_ASYNC_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_ASYNC_COMMAND, AnjutaAsyncCommandClass))
typedef struct _AnjutaAsyncCommandClass AnjutaAsyncCommandClass;
typedef struct _AnjutaAsyncCommand AnjutaAsyncCommand;
typedef struct _AnjutaAsyncCommandPriv AnjutaAsyncCommandPriv;
struct _AnjutaAsyncCommandClass
{
AnjutaCommandClass parent_class;
};
struct _AnjutaAsyncCommand
{
AnjutaCommand parent_instance;
AnjutaAsyncCommandPriv *priv;
};
GType anjuta_async_command_get_type (void) G_GNUC_CONST;
void anjuta_async_command_set_error_message (AnjutaCommand *command,
gchar *error_message);
gchar *anjuta_async_command_get_error_message (AnjutaCommand *command);
void anjuta_async_command_lock (AnjutaAsyncCommand *self);
void anjuta_async_command_unlock (AnjutaAsyncCommand *self);
G_END_DECLS
#endif /* _ANJUTA_ASYNC_COMMAND_H_ */
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* anjuta
* Copyright (C) James Liggett 2007 <jrliggett@cox.net>
*
* anjuta is free software.
*
* You may redistribute it and/or modify it under the terms of the
* GNU General Public License, as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* anjuta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with anjuta. If not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#include "anjuta-command.h"
struct _AnjutaCommandPriv
{
gchar *error_message;
};
enum
{
DATA_ARRIVED,
COMMAND_FINISHED,
LAST_SIGNAL
};
static guint anjuta_command_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (AnjutaCommand, anjuta_command, G_TYPE_OBJECT);
static void
anjuta_command_init (AnjutaCommand *self)
{
self->priv = g_new0 (AnjutaCommandPriv, 1);
}
static void
anjuta_command_finalize (GObject *object)
{
AnjutaCommand *self;
self = ANJUTA_COMMAND (object);
g_free (self->priv->error_message);
g_free (self->priv);
G_OBJECT_CLASS (anjuta_command_parent_class)->finalize (object);
}
static void
anjuta_command_class_init (AnjutaCommandClass *klass)
{
GObjectClass* object_class = G_OBJECT_CLASS (klass);
object_class->finalize = anjuta_command_finalize;
klass->run = NULL;
klass->start = NULL;
klass->notify_data_arrived = NULL;
klass->notify_complete = NULL;
klass->set_error_message = anjuta_command_set_error_message;
klass->get_error_message = anjuta_command_get_error_message;
anjuta_command_signals[DATA_ARRIVED] =
g_signal_new ("data-arrived",
G_OBJECT_CLASS_TYPE (klass),
G_SIGNAL_RUN_FIRST,
0,
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE,
0);
anjuta_command_signals[COMMAND_FINISHED] =
g_signal_new ("command-finished",
G_OBJECT_CLASS_TYPE (klass),
G_SIGNAL_RUN_FIRST,
0,
NULL, NULL,
g_cclosure_marshal_VOID__UINT ,
G_TYPE_NONE, 1,
G_TYPE_UINT);
}
void
anjuta_command_start (AnjutaCommand *self)
{
ANJUTA_COMMAND_GET_CLASS (self)->start (self);
}
void
anjuta_command_notify_data_arrived (AnjutaCommand *self)
{
ANJUTA_COMMAND_GET_CLASS (self)->notify_data_arrived (self);
}
void
anjuta_command_notify_complete (AnjutaCommand *self, guint return_code)
{
ANJUTA_COMMAND_GET_CLASS (self)->notify_complete (self, return_code);
}
void
anjuta_command_set_error_message (AnjutaCommand *self, gchar *error_message)
{
if (self->priv->error_message)
g_free (error_message);
self->priv->error_message = g_strdup (error_message);
}
gchar *
anjuta_command_get_error_message (AnjutaCommand *self)
{
return g_strdup (self->priv->error_message);
}
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* anjuta
* Copyright (C) James Liggett 2007 <jrliggett@cox.net>
*
* anjuta is free software.
*
* You may redistribute it and/or modify it under the terms of the
* GNU General Public License, as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* anjuta is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with anjuta. If not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#ifndef _ANJUTA_COMMAND_H_
#define _ANJUTA_COMMAND_H_
#include <glib-object.h>
G_BEGIN_DECLS
#define ANJUTA_TYPE_COMMAND (anjuta_command_get_type ())
#define ANJUTA_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_COMMAND, AnjutaCommand))
#define ANJUTA_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_COMMAND, AnjutaCommandClass))
#define ANJUTA_IS_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_COMMAND))
#define ANJUTA_IS_COMMAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_COMMAND))
#define ANJUTA_COMMAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_COMMAND, AnjutaCommandClass))
typedef struct _AnjutaCommandClass AnjutaCommandClass;
typedef struct _AnjutaCommand AnjutaCommand;
typedef struct _AnjutaCommandPriv AnjutaCommandPriv;
struct _AnjutaCommandClass
{
GObjectClass parent_class;
/* Virtual Methods */
guint (*run) (AnjutaCommand *self);
void (*start) (AnjutaCommand *self);
void (*notify_data_arrived) (AnjutaCommand *self);
void (*notify_complete) (AnjutaCommand *self, guint return_code);
void (*set_error_message) (AnjutaCommand *self, gchar *error_message);
gchar * (*get_error_message) (AnjutaCommand *self);
};
struct _AnjutaCommand
{
GObject parent_instance;
AnjutaCommandPriv *priv;
};
GType anjuta_command_get_type (void) G_GNUC_CONST;
void anjuta_command_start (AnjutaCommand *self);
void anjuta_command_notify_data_arrived (AnjutaCommand *self);
void anjuta_command_notify_complete (AnjutaCommand *self, guint return_code);
void anjuta_command_set_error_message (AnjutaCommand *self, gchar *error_message);
gchar *anjuta_command_get_error_message (AnjutaCommand *self);
G_END_DECLS
#endif /* _ANJUTA_COMMAND_H_ */
/* Stub file for Anjuta Glade 3 Plugin */
#include <libanjuta/anjuta-vcs-status-tree-view.h>
<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="anjuta" library="gladeanjuta" depends="gtk+">
<glade-widget-classes>
<glade-widget-class name="AnjutaVcsStatusTreeView" title="Status Tree View"
generic-name="vcsstatus">
<properties>
<property id="show-status" common="True" default="True" />
<property id="status-codes" common="True" ignore="True">
<displayable-values>