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
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

callbacks.c File Reference
#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"
Include dependency graph for callbacks.c:

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)
 

Macro Definition Documentation

◆ ITEM

#define ITEM (   n)    g_hash_table_insert(hash, (gpointer) #n, G_CALLBACK(n));

Function Documentation

◆ builder_connect_func()

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 
)
static

Definition at line 1980 of file callbacks.c.

References NULL.

Referenced by callbacks_connect().

◆ callbacks_connect()

void callbacks_connect ( GtkBuilder *  builder)

Definition at line 1997 of file callbacks.c.

References builder, and builder_connect_func().

Referenced by ui_init_builder().

◆ convert_eol()

◆ do_toolbar_search()

static void do_toolbar_search ( const gchar *  text,
gboolean  incremental,
gboolean  backwards 
)
static

◆ find_usage()

◆ get_line_and_offset_from_text()

static void get_line_and_offset_from_text ( const gchar *  text,
gint *  line_no,
gint *  offset 
)
static

Definition at line 914 of file callbacks.c.

References text.

Referenced by on_go_to_line_activate(), and on_toolbutton_goto_entry_activate().

◆ goto_tag()

◆ insert_comment_template()

◆ insert_multiline_comment()

◆ on_button_customize_toolbar_clicked()

static void on_button_customize_toolbar_clicked ( GtkButton *  button,
gpointer  user_data 
)
static

Definition at line 1816 of file callbacks.c.

References toolbar_configure(), and ui_widgets.

◆ on_change_font1_activate()

static void on_change_font1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 376 of file callbacks.c.

References dialogs_show_open_font().

◆ on_clone1_activate()

static void on_clone1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 99 of file callbacks.c.

References document_clone(), and document_get_current().

◆ on_close1_activate()

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().

◆ on_close_all1_activate()

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().

◆ on_close_other_documents1_activate()

void on_close_other_documents1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_comments_bsd_activate()

static void on_comments_bsd_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1125 of file callbacks.c.

References document_get_current(), editor_info, and insert_comment_template().

◆ on_comments_changelog_activate()

static void on_comments_changelog_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_comments_fileheader_activate()

static void on_comments_fileheader_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_comments_function_activate()

◆ on_comments_gpl_activate()

static void on_comments_gpl_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1113 of file callbacks.c.

References document_get_current(), editor_info, and insert_comment_template().

◆ on_comments_multiline_activate()

static void on_comments_multiline_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1081 of file callbacks.c.

References document_get_current(), editor_info, and insert_multiline_comment().

◆ on_context_action1_activate()

◆ on_copy1_activate()

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().

◆ on_copy_current_lines1_activate()

static void on_copy_current_lines1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_count_words1_activate()

static void on_count_words1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 842 of file callbacks.c.

References tools_word_count().

◆ on_cr_activate()

static void on_cr_activate ( GtkCheckMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 567 of file callbacks.c.

References convert_eol(), ignore_callback, and SC_EOL_CR.

◆ on_crlf_activate()

static void on_crlf_activate ( GtkCheckMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 549 of file callbacks.c.

References convert_eol(), ignore_callback, and SC_EOL_CRLF.

◆ on_customize_toolbar1_activate()

static void on_customize_toolbar1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1805 of file callbacks.c.

References prefs_show_dialog(), and show_notebook_page().

◆ on_cut1_activate()

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().

◆ on_cut_current_lines1_activate()

static void on_cut_current_lines1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_debug_messages1_activate()

static void on_debug_messages1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1756 of file callbacks.c.

References log_show_debug_messages_dialog().

◆ on_delete1_activate()

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.

◆ on_delete_current_lines1_activate()

static void on_delete_current_lines1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_detect_type_from_file_activate()

static void on_detect_type_from_file_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_detect_width_from_file_activate()

static void on_detect_width_from_file_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_duplicate_line_or_selection1_activate()

static void on_duplicate_line_or_selection1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_edit1_deselect()

static void on_edit1_deselect ( GtkMenuShell *  menushell,
gpointer  user_data 
)
static

Definition at line 201 of file callbacks.c.

References ui_menu_copy_items_set_sensitive().

◆ on_edit1_select()

static void on_edit1_select ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_escape_key_press_event()

gboolean on_escape_key_press_event ( GtkWidget *  widget,
GdkEventKey *  event,
gpointer  user_data 
)

◆ on_file1_activate()

static void on_file1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_file_properties_activate()

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().

◆ on_find1_activate()

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().

◆ on_find_document_usage1_activate()

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().

◆ on_find_in_files1_activate()

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().

◆ on_find_next1_activate()

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().

◆ on_find_nextsel1_activate()

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().

◆ on_find_previous1_activate()

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().

◆ on_find_prevsel1_activate()

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().

◆ on_find_usage1_activate()

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().

◆ on_fullscreen1_toggled()

static void on_fullscreen1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

Definition at line 659 of file callbacks.c.

References ignore_callback, ui_prefs, and ui_set_fullscreen().

◆ on_go_to_line_activate()

void on_go_to_line_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_go_to_next_marker1_activate()

static void on_go_to_next_marker1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_go_to_previous_marker1_activate()

static void on_go_to_previous_marker1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_goto_tag_declaration1()

static void on_goto_tag_declaration1 ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 836 of file callbacks.c.

References goto_tag().

◆ on_goto_tag_definition1()

static void on_goto_tag_definition1 ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 830 of file callbacks.c.

References goto_tag().

◆ on_help1_activate()

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().

◆ on_help_menu_item_bug_report_activate()

static void on_help_menu_item_bug_report_activate ( GtkMenuItem *  item,
gpointer  user_data 
)
static

Definition at line 1021 of file callbacks.c.

References GEANY_BUG_REPORT, and utils_open_browser().

◆ on_help_menu_item_donate_activate()

static void on_help_menu_item_donate_activate ( GtkMenuItem *  item,
gpointer  user_data 
)
static

Definition at line 1009 of file callbacks.c.

References GEANY_DONATE, and utils_open_browser().

◆ on_help_menu_item_wiki_activate()

static void on_help_menu_item_wiki_activate ( GtkMenuItem *  item,
gpointer  user_data 
)
static

Definition at line 1015 of file callbacks.c.

References GEANY_WIKI, and utils_open_browser().

◆ on_help_shortcuts1_activate()

static void on_help_shortcuts1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 997 of file callbacks.c.

References keybindings_show_shortcuts().

◆ on_hide_toolbar1_activate()

static void on_hide_toolbar1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 441 of file callbacks.c.

References main_widgets, ui_lookup_widget(), and GeanyMainWidgets::window.

◆ on_indent_width_activate()

static void on_indent_width_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_info1_activate()

static void on_info1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 315 of file callbacks.c.

References about_dialog_show().

◆ on_insert_alternative_white_space1_activate()

static void on_insert_alternative_white_space1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_lf_activate()

static void on_lf_activate ( GtkCheckMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 558 of file callbacks.c.

References convert_eol(), ignore_callback, and SC_EOL_LF.

◆ on_line_breaking1_activate()

void on_line_breaking1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_line_wrapping1_toggled()

void on_line_wrapping1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)

◆ on_load_tags1_activate()

static void on_load_tags1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1484 of file callbacks.c.

References symbols_show_load_tags_dialog().

◆ on_mark_all1_activate()

static void on_mark_all1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_markers_margin1_toggled()

static void on_markers_margin1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_menu_color_schemes_activate()

static void on_menu_color_schemes_activate ( GtkImageMenuItem *  imagemenuitem,
gpointer  user_data 
)
static

Definition at line 679 of file callbacks.c.

References highlighting_show_color_scheme_dialog().

◆ on_menu_comment_line1_activate()

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().

◆ on_menu_comments_bsd_activate()

static void on_menu_comments_bsd_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1131 of file callbacks.c.

References document_get_current(), and insert_comment_template().

◆ on_menu_comments_gpl_activate()

static void on_menu_comments_gpl_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1119 of file callbacks.c.

References document_get_current(), and insert_comment_template().

◆ on_menu_comments_multiline_activate()

static void on_menu_comments_multiline_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1087 of file callbacks.c.

References document_get_current(), and insert_multiline_comment().

◆ on_menu_decrease_indent1_activate()

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().

◆ on_menu_fold_all1_activate()

static void on_menu_fold_all1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1186 of file callbacks.c.

References document_get_current(), GeanyDocument::editor, editor_fold_all(), and NULL.

◆ on_menu_increase_indent1_activate()

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().

◆ on_menu_open_selected_file1_activate()

◆ on_menu_project1_activate()

static void on_menu_project1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_menu_reload_configuration1_activate()

static void on_menu_reload_configuration1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1750 of file callbacks.c.

References main_reload_configuration().

◆ on_menu_remove_indicators1_activate()

void on_menu_remove_indicators1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_menu_select_all1_activate()

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().

◆ on_menu_show_indentation_guides1_toggled()

static void on_menu_show_indentation_guides1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_menu_show_line_endings1_toggled()

static void on_menu_show_line_endings1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_menu_show_sidebar1_toggled()

◆ on_menu_show_white_space1_toggled()

static void on_menu_show_white_space1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_menu_toggle_all_additional_widgets1_activate()

void on_menu_toggle_all_additional_widgets1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_menu_toggle_line_commentation1_activate()

void on_menu_toggle_line_commentation1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_menu_uncomment_line1_activate()

void on_menu_uncomment_line1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_menu_unfold_all1_activate()

static void on_menu_unfold_all1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1195 of file callbacks.c.

References document_get_current(), GeanyDocument::editor, editor_unfold_all(), and NULL.

◆ on_menu_write_unicode_bom1_toggled()

static void on_menu_write_unicode_bom1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_motion_event()

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().

◆ on_move_lines_down1_activate()

static void on_move_lines_down1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_move_lines_up1_activate()

static void on_move_lines_up1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_new1_activate()

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().

◆ on_next_message1_activate()

void on_next_message1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_normal_size1_activate()

void on_normal_size1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_notebook1_switch_page_after()

◆ on_open1_activate()

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().

◆ on_page_setup1_activate()

static void on_page_setup1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1668 of file callbacks.c.

References printing_page_setup_gtk().

◆ on_paste1_activate()

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().

◆ on_plugin_preferences1_activate()

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().

◆ on_preferences1_activate()

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().

◆ on_previous_message1_activate()

void on_previous_message1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_print1_activate()

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().

◆ on_project_close1_activate()

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().

◆ on_project_new1_activate()

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().

◆ on_project_open1_activate()

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().

◆ on_project_properties1_activate()

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().

◆ on_quit1_activate()

void on_quit1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

Definition at line 168 of file callbacks.c.

References main_quit().

◆ on_redo1_activate()

void on_redo1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_reflow_lines_block1_activate()

static void on_reflow_lines_block1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_reload_all()

◆ on_remove_markers1_activate()

void on_remove_markers1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_replace1_activate()

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().

◆ on_replace_spaces_activate()

void on_replace_spaces_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_replace_tabs_activate()

void on_replace_tabs_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_reset_indentation1_activate()

static void on_reset_indentation1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_save1_activate()

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().

◆ on_save_all1_activate()

◆ on_save_as1_activate()

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().

◆ on_search1_activate()

static void on_search1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1712 of file callbacks.c.

References main_widgets, msgwindow, NULL, ui_lookup_widget(), and GeanyMainWidgets::window.

◆ on_select_current_lines1_activate()

static void on_select_current_lines1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_select_current_paragraph1_activate()

static void on_select_current_paragraph1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_send_selection_to_vte1_activate()

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().

◆ on_set_file_readonly1_toggled()

static void on_set_file_readonly1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_show_color_chooser1_activate()

void on_show_color_chooser1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_show_line_numbers1_toggled()

static void on_show_line_numbers1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_show_messages_window1_toggled()

static void on_show_messages_window1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

Definition at line 669 of file callbacks.c.

References ignore_callback, msgwin_show_hide(), and ui_prefs.

◆ on_show_symbol_list_toggled()

static void on_show_symbol_list_toggled ( GtkToggleButton *  button,
gpointer  user_data 
)
static

Definition at line 1959 of file callbacks.c.

References ui_lookup_widget(), and ui_widgets.

◆ on_show_toolbar1_toggled()

static void on_show_toolbar1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_smart_line_indent1_activate()

static void on_smart_line_indent1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_spaces1_activate()

static void on_spaces1_activate ( GtkCheckMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1642 of file callbacks.c.

References GEANY_INDENT_TYPE_SPACES, and set_indent_type().

◆ on_strip_trailing_spaces1_activate()

static void on_strip_trailing_spaces1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

◆ on_tabs1_activate()

static void on_tabs1_activate ( GtkCheckMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1636 of file callbacks.c.

References GEANY_INDENT_TYPE_TABS, and set_indent_type().

◆ on_tabs_and_spaces1_activate()

static void on_tabs_and_spaces1_activate ( GtkCheckMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1648 of file callbacks.c.

References GEANY_INDENT_TYPE_BOTH, and set_indent_type().

◆ on_toggle_case1_activate()

◆ on_toolbar_search_entry_activate()

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().

◆ on_toolbar_search_entry_changed()

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().

◆ on_toolbutton_back_activate()

void on_toolbutton_back_activate ( GtkAction *  menuitem,
gpointer  user_data 
)

Definition at line 1606 of file callbacks.c.

References navqueue_go_back().

◆ on_toolbutton_compile_clicked()

void on_toolbutton_compile_clicked ( GtkAction *  action,
gpointer  user_data 
)

◆ on_toolbutton_forward_activate()

void on_toolbutton_forward_activate ( GtkAction *  menuitem,
gpointer  user_data 
)

Definition at line 1600 of file callbacks.c.

References navqueue_go_forward().

◆ on_toolbutton_goto_clicked()

void on_toolbutton_goto_clicked ( GtkAction *  action,
gpointer  user_data 
)

◆ on_toolbutton_goto_entry_activate()

void on_toolbutton_goto_entry_activate ( GtkAction *  action,
const gchar *  text,
gpointer  user_data 
)

◆ on_toolbutton_reload_clicked()

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().

◆ on_toolbutton_run_clicked()

void on_toolbutton_run_clicked ( GtkAction *  action,
gpointer  user_data 
)

◆ on_toolbutton_search_clicked()

void on_toolbutton_search_clicked ( GtkAction *  action,
gpointer  user_data 
)

◆ on_tv_notebook_switch_page()

static void on_tv_notebook_switch_page ( GtkNotebook *  notebook,
gpointer  page,
guint  page_num,
gpointer  user_data 
)
static

Definition at line 515 of file callbacks.c.

References ignore_callback.

◆ on_tv_notebook_switch_page_after()

static void on_tv_notebook_switch_page_after ( GtkNotebook *  notebook,
gpointer  page,
guint  page_num,
gpointer  user_data 
)
static

Definition at line 523 of file callbacks.c.

References ignore_callback.

◆ on_undo1_activate()

void on_undo1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_use_auto_indentation1_toggled()

static void on_use_auto_indentation1_toggled ( GtkCheckMenuItem *  checkmenuitem,
gpointer  user_data 
)
static

◆ on_website1_activate()

static void on_website1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)
static

Definition at line 1003 of file callbacks.c.

References GEANY_HOMEPAGE, and utils_open_browser().

◆ on_window_delete_event()

static gboolean on_window_delete_event ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  gdata 
)
static

Definition at line 82 of file callbacks.c.

References main_quit().

◆ on_window_state_event()

static gboolean on_window_state_event ( GtkWidget *  widget,
GdkEventWindowState *  event,
gpointer  user_data 
)
static

Definition at line 1771 of file callbacks.c.

References ignore_callback, NULL, ui_lookup_widget(), and ui_prefs.

◆ on_zoom_in1_activate()

void on_zoom_in1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ on_zoom_out1_activate()

void on_zoom_out1_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

◆ set_indent_type()

static void set_indent_type ( GtkCheckMenuItem *  menuitem,
GeanyIndentType  type 
)
static

◆ setup_find()

static void setup_find ( const gchar *  text,
gboolean  backwards 
)
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().

◆ show_notebook_page()

static void show_notebook_page ( const gchar *  notebook_name,
const gchar *  page_name 
)
static

Definition at line 1792 of file callbacks.c.

References NULL, ui_lookup_widget(), and ui_widgets.

Referenced by on_customize_toolbar1_activate().

◆ toolbar_popup_menu()

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().