geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "callbacks.h"
#include "about.h"
#include "app.h"
#include "build.h"
#include "dialogs.h"
#include "documentprivate.h"
#include "encodings.h"
#include "filetypes.h"
#include "geanyobject.h"
#include "highlighting.h"
#include "keybindings.h"
#include "keyfile.h"
#include "log.h"
#include "main.h"
#include "msgwindow.h"
#include "navqueue.h"
#include "plugins.h"
#include "pluginutils.h"
#include "prefs.h"
#include "printing.h"
#include "sciwrappers.h"
#include "sidebar.h"
#include "spawn.h"
#include "support.h"
#include "symbols.h"
#include "templates.h"
#include "toolbar.h"
#include "tools.h"
#include "ui_utils.h"
#include "utils.h"
#include "vte.h"
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <glib/gstdio.h>
#include <time.h>
#include "signallist.i"
Go to the source code of this file.
Macros | |
#define | ITEM(n) g_hash_table_insert(hash, (gpointer) #n, G_CALLBACK(n)); |
Functions | |
static gboolean | on_window_delete_event (GtkWidget *widget, GdkEvent *event, gpointer gdata) |
void | on_new1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_clone1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_save1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_save_as1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_save_all1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_close_all1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_close1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_quit1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_file1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_edit1_select (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_edit1_deselect (GtkMenuShell *menushell, gpointer user_data) |
void | on_undo1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_redo1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_cut1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_copy1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_paste1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_delete1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_preferences1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_info1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_open1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_toolbutton_reload_clicked (GtkAction *action, gpointer user_data) |
void | on_reload_all (GtkAction *action, gpointer user_data) |
static void | on_change_font1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | setup_find (const gchar *text, gboolean backwards) |
static void | do_toolbar_search (const gchar *text, gboolean incremental, gboolean backwards) |
void | on_toolbar_search_entry_changed (GtkAction *action, const gchar *text, gpointer user_data) |
void | on_toolbar_search_entry_activate (GtkAction *action, const gchar *text, gpointer user_data) |
void | on_toolbutton_search_clicked (GtkAction *action, gpointer user_data) |
static void | on_hide_toolbar1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_zoom_in1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_zoom_out1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_normal_size1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_notebook1_switch_page_after (GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data) |
static void | on_tv_notebook_switch_page (GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data) |
static void | on_tv_notebook_switch_page_after (GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data) |
static void | convert_eol (gint mode) |
static void | on_crlf_activate (GtkCheckMenuItem *menuitem, gpointer user_data) |
static void | on_lf_activate (GtkCheckMenuItem *menuitem, gpointer user_data) |
static void | on_cr_activate (GtkCheckMenuItem *menuitem, gpointer user_data) |
void | on_replace_tabs_activate (GtkMenuItem *menuitem, gpointer user_data) |
gboolean | toolbar_popup_menu (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
void | on_toggle_case1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_show_toolbar1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_fullscreen1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_show_messages_window1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_menu_color_schemes_activate (GtkImageMenuItem *imagemenuitem, gpointer user_data) |
static void | on_markers_margin1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_show_line_numbers1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_menu_show_white_space1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_menu_show_line_endings1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_menu_show_indentation_guides1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
void | on_line_wrapping1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_set_file_readonly1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_use_auto_indentation1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | find_usage (gboolean in_session) |
void | on_find_document_usage1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_find_usage1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | goto_tag (gboolean definition) |
static void | on_goto_tag_definition1 (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_goto_tag_declaration1 (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_count_words1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_show_color_chooser1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_toolbutton_compile_clicked (GtkAction *action, gpointer user_data) |
void | on_find1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_find_next1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_find_previous1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_find_nextsel1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_find_prevsel1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_replace1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_find_in_files1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | get_line_and_offset_from_text (const gchar *text, gint *line_no, gint *offset) |
void | on_go_to_line_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_toolbutton_goto_entry_activate (GtkAction *action, const gchar *text, gpointer user_data) |
void | on_toolbutton_goto_clicked (GtkAction *action, gpointer user_data) |
void | on_help1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_help_shortcuts1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_website1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_help_menu_item_donate_activate (GtkMenuItem *item, gpointer user_data) |
static void | on_help_menu_item_wiki_activate (GtkMenuItem *item, gpointer user_data) |
static void | on_help_menu_item_bug_report_activate (GtkMenuItem *item, gpointer user_data) |
static void | on_comments_function_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | insert_multiline_comment (GeanyDocument *doc, gint pos) |
static void | on_comments_multiline_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_comments_multiline_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | insert_comment_template (GeanyDocument *doc, gint pos, guint template) |
static void | on_comments_gpl_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_comments_gpl_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_comments_bsd_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_comments_bsd_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_comments_changelog_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_comments_fileheader_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_file_properties_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_fold_all1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_unfold_all1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_toolbutton_run_clicked (GtkAction *action, gpointer user_data) |
void | on_menu_remove_indicators1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_print1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_select_all1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_show_sidebar1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
static void | on_menu_write_unicode_bom1_toggled (GtkCheckMenuItem *checkmenuitem, gpointer user_data) |
void | on_menu_comment_line1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_uncomment_line1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_toggle_line_commentation1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_increase_indent1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_decrease_indent1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_next_message1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_previous_message1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_project_new1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_project_open1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_project_close1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_project_properties1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_project1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_open_selected_file1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_remove_markers1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_load_tags1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_context_action1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_menu_toggle_all_additional_widgets1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_toolbutton_forward_activate (GtkAction *menuitem, gpointer user_data) |
void | on_toolbutton_back_activate (GtkAction *menuitem, gpointer user_data) |
gboolean | on_motion_event (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
static void | set_indent_type (GtkCheckMenuItem *menuitem, GeanyIndentType type) |
static void | on_tabs1_activate (GtkCheckMenuItem *menuitem, gpointer user_data) |
static void | on_spaces1_activate (GtkCheckMenuItem *menuitem, gpointer user_data) |
static void | on_tabs_and_spaces1_activate (GtkCheckMenuItem *menuitem, gpointer user_data) |
static void | on_strip_trailing_spaces1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_page_setup1_activate (GtkMenuItem *menuitem, gpointer user_data) |
gboolean | on_escape_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
void | on_line_breaking1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_replace_spaces_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_search1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_close_other_documents1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_menu_reload_configuration1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_debug_messages1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_send_selection_to_vte1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static gboolean | on_window_state_event (GtkWidget *widget, GdkEventWindowState *event, gpointer user_data) |
static void | show_notebook_page (const gchar *notebook_name, const gchar *page_name) |
static void | on_customize_toolbar1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_button_customize_toolbar_clicked (GtkButton *button, gpointer user_data) |
static void | on_cut_current_lines1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_copy_current_lines1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_delete_current_lines1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_duplicate_line_or_selection1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_select_current_lines1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_select_current_paragraph1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_insert_alternative_white_space1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_go_to_next_marker1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_go_to_previous_marker1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_reflow_lines_block1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_move_lines_up1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_move_lines_down1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_smart_line_indent1_activate (GtkMenuItem *menuitem, gpointer user_data) |
void | on_plugin_preferences1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_indent_width_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_reset_indentation1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_mark_all1_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_detect_type_from_file_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | on_show_symbol_list_toggled (GtkToggleButton *button, gpointer user_data) |
static void | on_detect_width_from_file_activate (GtkMenuItem *menuitem, gpointer user_data) |
static void | builder_connect_func (GtkBuilder *builder, GObject *object, const gchar *signal_name, const gchar *handler_name, GObject *connect_obj, GConnectFlags flags, gpointer user_data) |
void | callbacks_connect (GtkBuilder *builder) |
#define ITEM | ( | n | ) | g_hash_table_insert(hash, (gpointer) #n, G_CALLBACK(n)); |
|
static |
void callbacks_connect | ( | GtkBuilder * | builder | ) |
Definition at line 1997 of file callbacks.c.
References builder, and builder_connect_func().
Referenced by ui_init_builder().
|
static |
Definition at line 530 of file callbacks.c.
References document_get_current(), document_undo_add(), GeanyDocument::editor, NULL, GeanyEditor::sci, sci_convert_eols(), sci_get_eol_mode(), sci_set_eol_mode(), ui_update_statusbar(), and UNDO_EOL.
Referenced by on_cr_activate(), on_crlf_activate(), and on_lf_activate().
|
static |
Definition at line 393 of file callbacks.c.
References document_get_current(), document_search_bar_find(), search_data, setup_find(), text, toolbar_get_widget_child_by_name(), and ui_set_search_entry_background().
Referenced by on_toolbar_search_entry_activate(), and on_toolbar_search_entry_changed().
|
static |
Definition at line 774 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_find_current_word_sciwc(), editor_info, GEANY_FIND_MATCHCASE, GEANY_FIND_WHOLEWORD, GEANY_MAX_WORD_LENGTH, NULL, GeanyEditor::sci, sci_get_selection_contents(), sci_has_selection(), and search_find_usage().
Referenced by on_find_document_usage1_activate(), and on_find_usage1_activate().
|
static |
Definition at line 914 of file callbacks.c.
References text.
Referenced by on_go_to_line_activate(), and on_toolbutton_goto_entry_activate().
|
static |
Definition at line 812 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_info, GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_TAGDECLARATION, GEANY_KEYS_GOTO_TAGDEFINITION, keybindings_send_command(), NULL, GeanyEditor::sci, sci_has_selection(), and sci_set_current_position().
Referenced by on_goto_tag_declaration1(), and on_goto_tag_definition1().
|
static |
Definition at line 1093 of file callbacks.c.
References GeanyDocument::editor, NULL, pos, GeanyEditor::sci, sci_end_undo_action(), sci_get_current_position(), sci_insert_text(), sci_start_undo_action(), templates_get_template_licence(), and text.
Referenced by on_comments_bsd_activate(), on_comments_gpl_activate(), on_menu_comments_bsd_activate(), and on_menu_comments_gpl_activate().
|
static |
Definition at line 1055 of file callbacks.c.
References _, GeanyFiletype::comment_open, GeanyFiletype::comment_single, GeanyDocument::editor, editor_info, editor_insert_multiline_comment(), GeanyDocument::file_type, NULL, pos, GeanyEditor::sci, sci_get_current_position(), ui_set_statusbar(), and utils_beep().
Referenced by on_comments_multiline_activate(), and on_menu_comments_multiline_activate().
|
static |
Definition at line 1816 of file callbacks.c.
References toolbar_configure(), and ui_widgets.
|
static |
Definition at line 376 of file callbacks.c.
References dialogs_show_open_font().
|
static |
Definition at line 99 of file callbacks.c.
References document_clone(), and document_get_current().
void on_close1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 159 of file callbacks.c.
References document_close, document_get_current(), and NULL.
Referenced by cb_func_file_action().
void on_close_all1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 153 of file callbacks.c.
References document_close_all().
Referenced by cb_func_file_action(), and show_tab_bar_popup_menu().
void on_close_other_documents1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1729 of file callbacks.c.
References document_close, document_get_current(), documents, documents_array, GeanyDocument::is_valid, and NULL.
Referenced by show_tab_bar_popup_menu().
|
static |
Definition at line 1125 of file callbacks.c.
References document_get_current(), editor_info, and insert_comment_template().
|
static |
Definition at line 1137 of file callbacks.c.
References GeanyTemplatePrefs::developer, document_get_current(), GeanyDocument::editor, GeanyTemplatePrefs::mail, NULL, GeanyEditor::sci, sci_end_undo_action(), sci_goto_pos(), sci_insert_text(), sci_start_undo_action(), template_prefs, templates_get_template_changelog(), and text.
|
static |
Definition at line 1156 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, GeanyDocument::file_name, GeanyDocument::file_type, FILETYPE_ID, NULL, GeanyEditor::sci, sci_end_undo_action(), sci_goto_pos(), sci_insert_text(), sci_start_undo_action(), templates_get_template_fileheader(), and text.
|
static |
Definition at line 1027 of file callbacks.c.
References _, document_get_current(), GeanyDocument::editor, GeanyDocument::file_type, line, NULL, pos, GeanyEditor::sci, sci_end_undo_action(), sci_get_position_from_line(), sci_insert_text(), sci_start_undo_action(), symbols_get_current_function(), templates_get_template_function(), text, and ui_set_statusbar().
|
static |
Definition at line 1113 of file callbacks.c.
References document_get_current(), editor_info, and insert_comment_template().
|
static |
Definition at line 1081 of file callbacks.c.
References document_get_current(), editor_info, and insert_multiline_comment().
void on_context_action1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1490 of file callbacks.c.
References _, command, GeanyFiletype::context_action_cmd, GeanyToolPrefs::context_action_cmd, document_get_current(), GeanyDocument::editor, editor_info, EMPTY, error(), GeanyDocument::file_type, NULL, GeanyEditor::sci, sci_get_selection_contents(), sci_has_selection(), spawn_async(), tool_prefs, ui_set_statusbar(), and utils_str_replace_all().
Referenced by cb_func_editor_action().
void on_copy1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 256 of file callbacks.c.
References main_widgets, sci_copy(), and GeanyMainWidgets::window.
Referenced by cb_func_clipboard_action().
|
static |
Definition at line 1828 of file callbacks.c.
References GEANY_KEY_GROUP_CLIPBOARD, GEANY_KEYS_CLIPBOARD_COPYLINE, and keybindings_send_command().
|
static |
Definition at line 842 of file callbacks.c.
References tools_word_count().
|
static |
Definition at line 567 of file callbacks.c.
References convert_eol(), ignore_callback, and SC_EOL_CR.
|
static |
Definition at line 549 of file callbacks.c.
References convert_eol(), ignore_callback, and SC_EOL_CRLF.
|
static |
Definition at line 1805 of file callbacks.c.
References prefs_show_dialog(), and show_notebook_page().
void on_cut1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 239 of file callbacks.c.
References main_widgets, sci_cut(), and GeanyMainWidgets::window.
Referenced by cb_func_clipboard_action().
|
static |
Definition at line 1822 of file callbacks.c.
References GEANY_KEY_GROUP_CLIPBOARD, GEANY_KEYS_CLIPBOARD_CUTLINE, and keybindings_send_command().
|
static |
Definition at line 1756 of file callbacks.c.
References log_show_debug_messages_dialog().
void on_delete1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 291 of file callbacks.c.
References main_widgets, sci_clear(), sci_has_selection(), and GeanyMainWidgets::window.
|
static |
Definition at line 1834 of file callbacks.c.
References GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_DELETELINE, and keybindings_send_command().
|
static |
Definition at line 1945 of file callbacks.c.
References document_detect_indent_type(), document_get_current(), GeanyDocument::editor, editor_set_indent_type(), NULL, ui_document_show_hide(), and ui_update_statusbar().
|
static |
Definition at line 1967 of file callbacks.c.
References document_detect_indent_width(), document_get_current(), GeanyDocument::editor, editor_set_indent_width(), NULL, and ui_document_show_hide().
|
static |
Definition at line 1840 of file callbacks.c.
References GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_DUPLICATELINE, and keybindings_send_command().
|
static |
Definition at line 201 of file callbacks.c.
References ui_menu_copy_items_set_sensitive().
|
static |
Definition at line 184 of file callbacks.c.
References document_get_current(), main_widgets, plugins_have_preferences(), ui_lookup_widget(), ui_update_insert_include_item(), ui_update_menu_copy_items(), and GeanyMainWidgets::window.
gboolean on_escape_key_press_event | ( | GtkWidget * | widget, |
GdkEventKey * | event, | ||
gpointer | user_data | ||
) |
Definition at line 1674 of file callbacks.c.
References GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR, keybindings_get_modifiers(), and keybindings_send_command().
Referenced by toolbar_reload().
|
static |
Definition at line 174 of file callbacks.c.
References printing_prefs, ui_prefs, ui_widget_show_hide(), ui_widgets, and PrintingPrefs::use_gtk_printing.
void on_file_properties_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1177 of file callbacks.c.
References dialogs_show_file_properties(), document_get_current(), and NULL.
Referenced by cb_func_file_action().
void on_find1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 868 of file callbacks.c.
References search_show_find_dialog().
Referenced by cb_func_search_action(), and on_toolbutton_search_clicked().
void on_find_document_usage1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 800 of file callbacks.c.
References find_usage().
Referenced by cb_func_search_action().
void on_find_in_files1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 908 of file callbacks.c.
References NULL, and search_show_find_in_files_dialog().
Referenced by cb_func_search_action().
void on_find_next1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 874 of file callbacks.c.
References search_find_again().
Referenced by cb_func_search_action().
void on_find_nextsel1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 890 of file callbacks.c.
References document_get_current(), and search_find_selection().
Referenced by cb_func_search_action().
void on_find_previous1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 880 of file callbacks.c.
References GEANY_FIND_REGEXP, search_data, search_find_again(), and utils_beep().
Referenced by cb_func_search_action().
void on_find_prevsel1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 896 of file callbacks.c.
References document_get_current(), and search_find_selection().
Referenced by cb_func_search_action().
void on_find_usage1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 806 of file callbacks.c.
References find_usage().
Referenced by cb_func_search_action().
|
static |
Definition at line 659 of file callbacks.c.
References ignore_callback, ui_prefs, and ui_set_fullscreen().
void on_go_to_line_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 929 of file callbacks.c.
References _, dialogs_show_input_goto_line(), document_get_current(), GeanyDocument::editor, editor_goto_line(), get_line_and_offset_from_text(), main_widgets, NULL, utils_beep(), and GeanyMainWidgets::window.
Referenced by cb_func_goto_action(), and on_toolbutton_goto_clicked().
|
static |
Definition at line 1864 of file callbacks.c.
References GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_NEXTMARKER, and keybindings_send_command().
|
static |
Definition at line 1870 of file callbacks.c.
References GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_PREVIOUSMARKER, and keybindings_send_command().
|
static |
Definition at line 836 of file callbacks.c.
References goto_tag().
|
static |
Definition at line 830 of file callbacks.c.
References goto_tag().
void on_help1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 987 of file callbacks.c.
References NULL, utils_get_help_url(), and utils_open_browser().
Referenced by cb_func_menu_help().
|
static |
Definition at line 1021 of file callbacks.c.
References GEANY_BUG_REPORT, and utils_open_browser().
|
static |
Definition at line 1009 of file callbacks.c.
References GEANY_DONATE, and utils_open_browser().
|
static |
Definition at line 1015 of file callbacks.c.
References GEANY_WIKI, and utils_open_browser().
|
static |
Definition at line 997 of file callbacks.c.
References keybindings_show_shortcuts().
|
static |
Definition at line 441 of file callbacks.c.
References main_widgets, ui_lookup_widget(), and GeanyMainWidgets::window.
|
static |
Definition at line 1908 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_set_indent_width(), ignore_callback, label, NULL, and ui_menu_item_get_text().
|
static |
Definition at line 315 of file callbacks.c.
References about_dialog_show().
|
static |
Definition at line 1858 of file callbacks.c.
References GEANY_KEY_GROUP_INSERT, GEANY_KEYS_INSERT_ALTWHITESPACE, and keybindings_send_command().
|
static |
Definition at line 558 of file callbacks.c.
References convert_eol(), ignore_callback, and SC_EOL_LF.
void on_line_breaking1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1688 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, ignore_callback, GeanyEditor::line_breaking, and NULL.
Referenced by cb_func_document_action().
void on_line_wrapping1_toggled | ( | GtkCheckMenuItem * | checkmenuitem, |
gpointer | user_data | ||
) |
Definition at line 735 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_set_line_wrapping(), ignore_callback, GeanyEditor::line_wrapping, and NULL.
Referenced by cb_func_document_action().
|
static |
Definition at line 1484 of file callbacks.c.
References symbols_show_load_tags_dialog().
|
static |
Definition at line 1939 of file callbacks.c.
References GEANY_KEY_GROUP_SEARCH, GEANY_KEYS_SEARCH_MARKALL, and keybindings_send_command().
|
static |
Definition at line 685 of file callbacks.c.
References editor_prefs, ignore_callback, GeanyEditorPrefs::show_markers_margin, and ui_toggle_editor_features().
|
static |
Definition at line 679 of file callbacks.c.
References highlighting_show_color_scheme_dialog().
void on_menu_comment_line1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1304 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_do_comment(), and NULL.
Referenced by cb_func_format_action().
|
static |
Definition at line 1131 of file callbacks.c.
References document_get_current(), and insert_comment_template().
|
static |
Definition at line 1119 of file callbacks.c.
References document_get_current(), and insert_comment_template().
|
static |
Definition at line 1087 of file callbacks.c.
References document_get_current(), and insert_multiline_comment().
void on_menu_decrease_indent1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1340 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_indent(), and NULL.
Referenced by cb_func_format_action().
|
static |
Definition at line 1186 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_fold_all(), and NULL.
void on_menu_increase_indent1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1331 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_indent(), and NULL.
Referenced by cb_func_format_action().
void on_menu_open_selected_file1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1407 of file callbacks.c.
References _, app, GeanyProject::base_path, document_get_current(), document_open_file(), GeanyDocument::editor, editor_get_default_selection(), EMPTY, filename, GEANY_WORDCHARS, NULL, GeanyApp::project, project_get_base_path(), SETPTR, ui_set_statusbar(), utils_get_current_file_dir_utf8(), utils_get_locale_from_utf8(), and utils_get_utf8_from_locale().
Referenced by cb_func_file_action().
|
static |
Definition at line 1389 of file callbacks.c.
References app, main_widgets, NULL, GeanyApp::project, ui_lookup_widget(), ui_prefs, ui_widgets, and GeanyMainWidgets::window.
|
static |
Definition at line 1750 of file callbacks.c.
References main_reload_configuration().
void on_menu_remove_indicators1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1210 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_indicator_clear(), GEANY_INDICATOR_ERROR, and NULL.
Referenced by cb_func_document_action().
void on_menu_select_all1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1228 of file callbacks.c.
References main_widgets, sci_select_all(), and GeanyMainWidgets::window.
Referenced by cb_func_select_action().
|
static |
Definition at line 725 of file callbacks.c.
References editor_prefs, ignore_callback, GeanyEditorPrefs::show_indent_guide, and ui_toggle_editor_features().
|
static |
Definition at line 715 of file callbacks.c.
References editor_prefs, ignore_callback, GeanyEditorPrefs::show_line_endings, and ui_toggle_editor_features().
void on_menu_show_sidebar1_toggled | ( | GtkCheckMenuItem * | checkmenuitem, |
gpointer | user_data | ||
) |
Definition at line 1255 of file callbacks.c.
References GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR, ignore_callback, interface_prefs, keybindings_send_command(), main_widgets, NULL, GeanyMainWidgets::sidebar_notebook, GeanyInterfacePrefs::sidebar_openfiles_visible, GeanyInterfacePrefs::sidebar_symbol_visible, ui_prefs, and ui_sidebar_show_hide().
Referenced by cb_func_view_action().
|
static |
Definition at line 705 of file callbacks.c.
References editor_prefs, ignore_callback, GeanyEditorPrefs::show_white_space, and ui_toggle_editor_features().
void on_menu_toggle_all_additional_widgets1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1547 of file callbacks.c.
References interface_prefs, main_widgets, GeanyMainWidgets::notebook, GeanyInterfacePrefs::show_notebook_tabs, ui_lookup_widget(), ui_statusbar_showhide(), and GeanyMainWidgets::window.
Referenced by cb_func_view_action(), and notebook_tab_click().
void on_menu_toggle_line_commentation1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1322 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_do_comment_toggle(), and NULL.
Referenced by cb_func_format_action().
void on_menu_uncomment_line1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1313 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_do_uncomment(), and NULL.
Referenced by cb_func_format_action().
|
static |
Definition at line 1195 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_unfold_all(), and NULL.
|
static |
Definition at line 1282 of file callbacks.c.
References document_get_current(), document_undo_add(), GeanyDocument::has_bom, ignore_callback, NULL, GeanyDocument::readonly, ui_update_statusbar(), UNDO_BOM, and utils_beep().
gboolean on_motion_event | ( | GtkWidget * | widget, |
GdkEventMotion * | event, | ||
gpointer | user_data | ||
) |
Definition at line 1612 of file callbacks.c.
References GeanyPrefs::auto_focus, and prefs.
Referenced by create_new_sci(), and toolbar_reload().
|
static |
Definition at line 1888 of file callbacks.c.
References GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_MOVELINEDOWN, and keybindings_send_command().
|
static |
Definition at line 1882 of file callbacks.c.
References GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_MOVELINEUP, and keybindings_send_command().
void on_new1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 92 of file callbacks.c.
References document_new_file(), and NULL.
Referenced by toolbar_init().
void on_next_message1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1349 of file callbacks.c.
References _, msgwin_goto_messages_file_line(), msgwindow, ui_set_statusbar(), and ui_tree_view_find_next().
Referenced by cb_func_search_action().
void on_normal_size1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 470 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, NULL, GeanyEditor::sci, and sci_zoom_off().
Referenced by cb_func_view_action().
|
static |
Definition at line 482 of file callbacks.c.
References build_menu_update(), GeanyDocument::changed, document_check_disk_status(), document_get_from_notebook_child(), document_highlight_tags(), GeanyDocument::file_name, geany_object, main_status, NULL, GeanyDocument::real_path, sidebar_select_openfiles_item(), sidebar_update_tag_list(), ui_document_show_hide(), ui_save_buttons_toggle(), ui_set_window_title(), ui_update_popup_reundo_items(), and ui_update_statusbar().
void on_open1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 322 of file callbacks.c.
References dialogs_show_open_file().
Referenced by cb_func_file_action(), and toolbar_init().
|
static |
Definition at line 1668 of file callbacks.c.
References printing_page_setup_gtk().
void on_paste1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 273 of file callbacks.c.
References main_widgets, NULL, sci_paste(), and GeanyMainWidgets::window.
Referenced by cb_func_clipboard_action().
void on_plugin_preferences1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1900 of file callbacks.c.
References NULL, and plugin_show_configure().
Referenced by cb_func_menu_preferences().
void on_preferences1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 308 of file callbacks.c.
References prefs_show_dialog().
Referenced by cb_func_menu_preferences().
void on_previous_message1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1357 of file callbacks.c.
References _, msgwin_goto_messages_file_line(), msgwindow, ui_set_statusbar(), and ui_tree_view_find_previous().
Referenced by cb_func_search_action().
void on_print1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1219 of file callbacks.c.
References document_get_current(), NULL, and printing_print_doc().
Referenced by cb_func_file_action().
void on_project_close1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1377 of file callbacks.c.
References project_close.
Referenced by cb_func_project_action().
void on_project_new1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1365 of file callbacks.c.
References project_new().
Referenced by cb_func_project_action().
void on_project_open1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1371 of file callbacks.c.
References project_open.
Referenced by cb_func_project_action().
void on_project_properties1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1383 of file callbacks.c.
References project_properties().
Referenced by cb_func_project_action().
void on_quit1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 168 of file callbacks.c.
References main_quit().
void on_redo1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 225 of file callbacks.c.
References document_can_redo(), document_get_current(), document_redo(), GeanyDocument::editor, NULL, GeanyEditor::sci, and sci_cancel().
Referenced by cb_func_editor_action().
|
static |
Definition at line 1876 of file callbacks.c.
References GEANY_KEY_GROUP_FORMAT, GEANY_KEYS_FORMAT_REFLOWPARAGRAPH, and keybindings_send_command().
void on_reload_all | ( | GtkAction * | action, |
gpointer | user_data | ||
) |
Definition at line 339 of file callbacks.c.
References _, GeanyDocument::changed, dialogs_show_question_full(), document_can_redo(), document_can_undo(), document_reload_force(), documents, file_prefs, foreach_document, GeanyFilePrefs::keep_edit_history_on_reload, main_widgets, GeanyMainWidgets::notebook, and NULL.
Referenced by cb_func_file_action().
void on_remove_markers1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1473 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_indicator_clear(), GEANY_INDICATOR_SEARCH, NULL, GeanyEditor::sci, and sci_marker_delete_all().
Referenced by cb_func_document_action().
void on_replace1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 902 of file callbacks.c.
References search_show_replace_dialog().
Referenced by cb_func_search_action().
void on_replace_spaces_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1702 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_replace_spaces(), and NULL.
Referenced by cb_func_document_action().
void on_replace_tabs_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 576 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_replace_tabs(), and NULL.
Referenced by cb_func_document_action().
|
static |
Definition at line 1927 of file callbacks.c.
References document_apply_indent_settings(), documents, foreach_document, NULL, ui_document_show_hide(), and ui_update_statusbar().
void on_save1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 108 of file callbacks.c.
References document_get_current(), document_save_file(), NULL, and ui_prefs.
Referenced by cb_func_file_action().
void on_save_all1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 125 of file callbacks.c.
References GeanyDocument::changed, count, document_get_current(), document_get_from_page(), document_save_file(), document_show_tab(), main_widgets, max, ngettext, GeanyMainWidgets::notebook, sidebar_update_tag_list(), ui_set_statusbar(), and ui_set_window_title().
Referenced by cb_func_file_action().
void on_save_as1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 119 of file callbacks.c.
References dialogs_show_save_as().
Referenced by cb_func_file_action().
|
static |
Definition at line 1712 of file callbacks.c.
References main_widgets, msgwindow, NULL, ui_lookup_widget(), and GeanyMainWidgets::window.
|
static |
Definition at line 1846 of file callbacks.c.
References GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_LINE, and keybindings_send_command().
|
static |
Definition at line 1852 of file callbacks.c.
References GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_PARAGRAPH, and keybindings_send_command().
void on_send_selection_to_vte1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1762 of file callbacks.c.
Referenced by cb_func_format_action().
|
static |
Definition at line 747 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, ignore_callback, NULL, GeanyDocument::readonly, GeanyEditor::sci, sci_set_readonly(), ui_update_statusbar(), and ui_update_tab_status().
void on_show_color_chooser1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 848 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_find_current_word(), GEANY_WORDCHARS, NULL, pos, GeanyEditor::sci, sci_get_current_position(), and tools_color_chooser().
Referenced by cb_func_menu_opencolorchooser().
|
static |
Definition at line 695 of file callbacks.c.
References editor_prefs, ignore_callback, GeanyEditorPrefs::show_linenumber_margin, and ui_toggle_editor_features().
|
static |
Definition at line 669 of file callbacks.c.
References ignore_callback, msgwin_show_hide(), and ui_prefs.
|
static |
Definition at line 1959 of file callbacks.c.
References ui_lookup_widget(), and ui_widgets.
|
static |
Definition at line 650 of file callbacks.c.
References ignore_callback, main_widgets, GeanyMainWidgets::toolbar, toolbar_prefs, ui_widget_show_hide(), and GeanyToolbarPrefs::visible.
|
static |
Definition at line 1894 of file callbacks.c.
References GEANY_KEY_GROUP_FORMAT, GEANY_KEYS_FORMAT_AUTOINDENT, and keybindings_send_command().
|
static |
Definition at line 1642 of file callbacks.c.
References GEANY_INDENT_TYPE_SPACES, and set_indent_type().
|
static |
Definition at line 1654 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_strip_trailing_spaces(), ignore_callback, and NULL.
|
static |
Definition at line 1636 of file callbacks.c.
References GEANY_INDENT_TYPE_TABS, and set_indent_type().
|
static |
Definition at line 1648 of file callbacks.c.
References GEANY_INDENT_TYPE_BOTH, and set_indent_type().
void on_toggle_case1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 597 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_WORD, keybindings_send_command(), NULL, sci, GeanyEditor::sci, sci_get_current_position(), sci_get_selection_contents(), sci_has_selection(), SCI_LOWERCASE, sci_replace_sel(), SCI_SELECTIONISRECTANGLE, sci_send_command(), sci_set_selection_start(), SCI_UPPERCASE, text, and utils_str_has_upper().
Referenced by cb_func_format_action().
void on_toolbar_search_entry_activate | ( | GtkAction * | action, |
const gchar * | text, | ||
gpointer | user_data | ||
) |
Definition at line 413 of file callbacks.c.
References do_toolbar_search(), and text.
Referenced by toolbar_init().
void on_toolbar_search_entry_changed | ( | GtkAction * | action, |
const gchar * | text, | ||
gpointer | user_data | ||
) |
Definition at line 406 of file callbacks.c.
References do_toolbar_search(), and text.
Referenced by toolbar_init().
void on_toolbutton_back_activate | ( | GtkAction * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1606 of file callbacks.c.
References navqueue_go_back().
void on_toolbutton_compile_clicked | ( | GtkAction * | action, |
gpointer | user_data | ||
) |
Definition at line 862 of file callbacks.c.
References GEANY_KEY_GROUP_BUILD, GEANY_KEYS_BUILD_COMPILE, and keybindings_send_command().
void on_toolbutton_forward_activate | ( | GtkAction * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 1600 of file callbacks.c.
References navqueue_go_forward().
void on_toolbutton_goto_clicked | ( | GtkAction * | action, |
gpointer | user_data | ||
) |
Definition at line 972 of file callbacks.c.
References entry, NULL, on_go_to_line_activate(), on_toolbutton_goto_entry_activate(), text, and toolbar_get_widget_child_by_name().
void on_toolbutton_goto_entry_activate | ( | GtkAction * | action, |
const gchar * | text, | ||
gpointer | user_data | ||
) |
Definition at line 956 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_goto_line(), GEANY_KEY_GROUP_FOCUS, GEANY_KEYS_FOCUS_EDITOR, get_line_and_offset_from_text(), keybindings_send_command(), NULL, text, and utils_beep().
Referenced by on_toolbutton_goto_clicked(), and toolbar_init().
void on_toolbutton_reload_clicked | ( | GtkAction * | action, |
gpointer | user_data | ||
) |
Definition at line 329 of file callbacks.c.
References document_get_current(), document_reload_prompt(), and NULL.
Referenced by cb_func_file_action().
void on_toolbutton_run_clicked | ( | GtkAction * | action, |
gpointer | user_data | ||
) |
Definition at line 1204 of file callbacks.c.
References GEANY_KEY_GROUP_BUILD, GEANY_KEYS_BUILD_RUN, and keybindings_send_command().
void on_toolbutton_search_clicked | ( | GtkAction * | action, |
gpointer | user_data | ||
) |
Definition at line 420 of file callbacks.c.
References document_get_current(), document_search_bar_find(), entry, NULL, on_find1_activate(), search_data, setup_find(), text, toolbar_get_widget_child_by_name(), and ui_set_search_entry_background().
|
static |
Definition at line 515 of file callbacks.c.
References ignore_callback.
|
static |
Definition at line 523 of file callbacks.c.
References ignore_callback.
void on_undo1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 211 of file callbacks.c.
References document_can_undo(), document_get_current(), document_undo(), GeanyDocument::editor, NULL, GeanyEditor::sci, and sci_cancel().
Referenced by cb_func_editor_action().
|
static |
Definition at line 762 of file callbacks.c.
References GeanyEditor::auto_indent, document_get_current(), GeanyDocument::editor, ignore_callback, and NULL.
|
static |
Definition at line 1003 of file callbacks.c.
References GEANY_HOMEPAGE, and utils_open_browser().
|
static |
Definition at line 82 of file callbacks.c.
References main_quit().
|
static |
Definition at line 1771 of file callbacks.c.
References ignore_callback, NULL, ui_lookup_widget(), and ui_prefs.
void on_zoom_in1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 449 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, NULL, GeanyEditor::sci, and sci_zoom_in().
Referenced by cb_func_view_action().
void on_zoom_out1_activate | ( | GtkMenuItem * | menuitem, |
gpointer | user_data | ||
) |
Definition at line 460 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, NULL, GeanyEditor::sci, and sci_zoom_out().
Referenced by cb_func_view_action().
|
static |
Definition at line 1621 of file callbacks.c.
References document_get_current(), GeanyDocument::editor, editor_set_indent(), ignore_callback, GeanyEditor::indent_width, NULL, and ui_update_statusbar().
Referenced by on_spaces1_activate(), on_tabs1_activate(), and on_tabs_and_spaces1_activate().
|
static |
Definition at line 383 of file callbacks.c.
References search_data, SETPTR, and text.
Referenced by do_toolbar_search(), and on_toolbutton_search_clicked().
|
static |
Definition at line 1792 of file callbacks.c.
References NULL, ui_lookup_widget(), and ui_widgets.
Referenced by on_customize_toolbar1_activate().
gboolean toolbar_popup_menu | ( | GtkWidget * | widget, |
GdkEventButton * | event, | ||
gpointer | user_data | ||
) |
Definition at line 586 of file callbacks.c.
References NULL, and ui_widgets.
Referenced by toolbar_reload().