diff --git a/src/callbacks.c b/src/callbacks.c index 4923050f2..1c4536a80 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -74,85 +74,6 @@ #include -/* prototypes of Glade-only callback to let the compiler know they really are meant to be exported */ -GEANY_EXPORT_SYMBOL gboolean on_window_delete_event(GtkWidget *widget, GdkEvent *event, gpointer gdata); -GEANY_EXPORT_SYMBOL void on_info1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_change_font1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_crlf_activate(GtkCheckMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_lf_activate(GtkCheckMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_cr_activate(GtkCheckMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_hide_toolbar1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_show_toolbar1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_fullscreen1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_markers_margin1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_show_messages_window1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_color_schemes_activate(GtkImageMenuItem *imagemenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_count_words1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_edit1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_website1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_help_menu_item_donate_activate(GtkMenuItem *item, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_help_menu_item_wiki_activate(GtkMenuItem *item, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_help_menu_item_bug_report_activate(GtkMenuItem *item, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_comments_function_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_comments_multiline_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_comments_changelog_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_comments_gpl_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_comments_fileheader_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_set_file_readonly1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_tv_notebook_switch_page(GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_help_shortcuts1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_file_properties_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_show_line_numbers1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_use_auto_indentation1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_fold_all1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_unfold_all1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_notebook1_switch_page_after(GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_write_unicode_bom1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_comments_multiline_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_comments_gpl_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_comments_bsd_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_comments_bsd_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_project1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_load_tags1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_file1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_tv_notebook_switch_page_after(GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_tabs1_activate(GtkCheckMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_spaces1_activate(GtkCheckMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_strip_trailing_spaces1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_page_setup1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_search1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_reload_configuration1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_tabs_and_spaces1_activate(GtkCheckMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_debug_messages1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_show_white_space1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_show_line_endings1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_menu_show_indentation_guides1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL gboolean on_window_state_event(GtkWidget *widget, GdkEventWindowState *event, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_customize_toolbar1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_button_customize_toolbar_clicked(GtkButton *button, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_cut_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_copy_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_delete_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_duplicate_line_or_selection1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_select_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_select_current_paragraph1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_insert_alternative_white_space1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_go_to_next_marker1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_go_to_previous_marker1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_reflow_lines_block1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_smart_line_indent1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_move_lines_up1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_move_lines_down1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_goto_tag_definition1(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_goto_tag_declaration1(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_indent_width_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_reset_indentation1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_mark_all1_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_detect_type_from_file_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_detect_width_from_file_activate(GtkMenuItem *menuitem, gpointer user_data); -GEANY_EXPORT_SYMBOL void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_data); - - /* represents the state at switching a notebook page(in the left treeviews widget), to not emit * the selection-changed signal from tv.tree_openfiles */ /*static gboolean switch_tv_notebook_page = FALSE; */ @@ -160,7 +81,7 @@ GEANY_EXPORT_SYMBOL void on_clone1_activate(GtkMenuItem *menuitem, gpointer user /* wrapper function to abort exit process if cancel button is pressed */ -GEANY_EXPORT_SYMBOL gboolean on_window_delete_event(GtkWidget *widget, GdkEvent *event, gpointer gdata) +static gboolean on_window_delete_event(GtkWidget *widget, GdkEvent *event, gpointer gdata) { return !main_quit(); } @@ -170,14 +91,14 @@ GEANY_EXPORT_SYMBOL gboolean on_window_delete_event(GtkWidget *widget, GdkEvent * GUI callbacks */ -GEANY_EXPORT_SYMBOL void on_new1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_new1_activate(GtkMenuItem *menuitem, gpointer user_data) { document_new_file(NULL, NULL, NULL); } /* create a new file and copy file content and properties */ -GEANY_EXPORT_SYMBOL void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *old_doc = document_get_current(); @@ -186,7 +107,7 @@ GEANY_EXPORT_SYMBOL void on_clone1_activate(GtkMenuItem *menuitem, gpointer user } -GEANY_EXPORT_SYMBOL void on_save1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_save1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -197,13 +118,13 @@ GEANY_EXPORT_SYMBOL void on_save1_activate(GtkMenuItem *menuitem, gpointer user_ } -GEANY_EXPORT_SYMBOL void on_save_as1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_save_as1_activate(GtkMenuItem *menuitem, gpointer user_data) { dialogs_show_save_as(); } -GEANY_EXPORT_SYMBOL void on_save_all1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_save_all1_activate(GtkMenuItem *menuitem, gpointer user_data) { guint i, max = (guint) gtk_notebook_get_n_pages(GTK_NOTEBOOK(main_widgets.notebook)); GeanyDocument *doc, *cur_doc = document_get_current(); @@ -230,13 +151,13 @@ GEANY_EXPORT_SYMBOL void on_save_all1_activate(GtkMenuItem *menuitem, gpointer u } -GEANY_EXPORT_SYMBOL void on_close_all1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_close_all1_activate(GtkMenuItem *menuitem, gpointer user_data) { document_close_all(); } -GEANY_EXPORT_SYMBOL void on_close1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_close1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -245,13 +166,13 @@ GEANY_EXPORT_SYMBOL void on_close1_activate(GtkMenuItem *menuitem, gpointer user } -GEANY_EXPORT_SYMBOL void on_quit1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_quit1_activate(GtkMenuItem *menuitem, gpointer user_data) { main_quit(); } -GEANY_EXPORT_SYMBOL void on_file1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_file1_activate(GtkMenuItem *menuitem, gpointer user_data) { gtk_widget_set_sensitive(ui_widgets.recent_files_menuitem, g_queue_get_length(ui_prefs.recent_queue) > 0); @@ -261,7 +182,7 @@ GEANY_EXPORT_SYMBOL void on_file1_activate(GtkMenuItem *menuitem, gpointer user_ /* edit actions, c&p & co, from menu bar and from popup menu */ -GEANY_EXPORT_SYMBOL void on_edit1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_edit1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *item; GeanyDocument *doc = document_get_current(); @@ -278,7 +199,7 @@ GEANY_EXPORT_SYMBOL void on_edit1_activate(GtkMenuItem *menuitem, gpointer user_ } -GEANY_EXPORT_SYMBOL void on_undo1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_undo1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -292,7 +213,7 @@ GEANY_EXPORT_SYMBOL void on_undo1_activate(GtkMenuItem *menuitem, gpointer user_ } -GEANY_EXPORT_SYMBOL void on_redo1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_redo1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -306,7 +227,7 @@ GEANY_EXPORT_SYMBOL void on_redo1_activate(GtkMenuItem *menuitem, gpointer user_ } -GEANY_EXPORT_SYMBOL void on_cut1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_cut1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window)); @@ -326,7 +247,7 @@ GEANY_EXPORT_SYMBOL void on_cut1_activate(GtkMenuItem *menuitem, gpointer user_d } -GEANY_EXPORT_SYMBOL void on_copy1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_copy1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window)); @@ -346,7 +267,7 @@ GEANY_EXPORT_SYMBOL void on_copy1_activate(GtkMenuItem *menuitem, gpointer user_ } -GEANY_EXPORT_SYMBOL void on_paste1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_paste1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window)); @@ -369,7 +290,7 @@ GEANY_EXPORT_SYMBOL void on_paste1_activate(GtkMenuItem *menuitem, gpointer user } -GEANY_EXPORT_SYMBOL void on_delete1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_delete1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(main_widgets.window)); @@ -389,28 +310,28 @@ GEANY_EXPORT_SYMBOL void on_delete1_activate(GtkMenuItem *menuitem, gpointer use } -GEANY_EXPORT_SYMBOL void on_preferences1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_preferences1_activate(GtkMenuItem *menuitem, gpointer user_data) { prefs_show_dialog(); } /* about menu item */ -GEANY_EXPORT_SYMBOL void on_info1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_info1_activate(GtkMenuItem *menuitem, gpointer user_data) { about_dialog_show(); } /* open file */ -GEANY_EXPORT_SYMBOL void on_open1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_open1_activate(GtkMenuItem *menuitem, gpointer user_data) { dialogs_show_open_file(); } /* reload file */ -GEANY_EXPORT_SYMBOL void on_toolbutton_reload_clicked(GtkAction *action, gpointer user_data) +void on_toolbutton_reload_clicked(GtkAction *action, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -420,7 +341,7 @@ GEANY_EXPORT_SYMBOL void on_toolbutton_reload_clicked(GtkAction *action, gpointe } -GEANY_EXPORT_SYMBOL void on_change_font1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_change_font1_activate(GtkMenuItem *menuitem, gpointer user_data) { dialogs_show_open_font(); } @@ -485,7 +406,7 @@ void on_toolbutton_search_clicked(GtkAction *action, gpointer user_data) /* hides toolbar from toolbar popup menu */ -GEANY_EXPORT_SYMBOL void on_hide_toolbar1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_hide_toolbar1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *tool_item = ui_lookup_widget(GTK_WIDGET(main_widgets.window), "menu_show_toolbar1"); gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(tool_item), FALSE); @@ -493,7 +414,7 @@ GEANY_EXPORT_SYMBOL void on_hide_toolbar1_activate(GtkMenuItem *menuitem, gpoint /* zoom in from menu bar and popup menu */ -GEANY_EXPORT_SYMBOL void on_zoom_in1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_zoom_in1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -504,7 +425,7 @@ GEANY_EXPORT_SYMBOL void on_zoom_in1_activate(GtkMenuItem *menuitem, gpointer us /* zoom out from menu bar and popup menu */ -GEANY_EXPORT_SYMBOL void on_zoom_out1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_zoom_out1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -514,7 +435,7 @@ GEANY_EXPORT_SYMBOL void on_zoom_out1_activate(GtkMenuItem *menuitem, gpointer u } -GEANY_EXPORT_SYMBOL void on_normal_size1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_normal_size1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -533,7 +454,7 @@ static gboolean delayed_check_disk_status(gpointer data) /* Changes window-title after switching tabs and lots of other things. * note: using 'after' makes Scintilla redraw before the UI, appearing more responsive */ -GEANY_EXPORT_SYMBOL void on_notebook1_switch_page_after(GtkNotebook *notebook, gpointer page, +static void on_notebook1_switch_page_after(GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data) { GeanyDocument *doc; @@ -569,7 +490,7 @@ GEANY_EXPORT_SYMBOL void on_notebook1_switch_page_after(GtkNotebook *notebook, g } -GEANY_EXPORT_SYMBOL void on_tv_notebook_switch_page(GtkNotebook *notebook, gpointer page, +static void on_tv_notebook_switch_page(GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data) { /* suppress selection changed signal when switching to the open files list */ @@ -577,7 +498,7 @@ GEANY_EXPORT_SYMBOL void on_tv_notebook_switch_page(GtkNotebook *notebook, gpoin } -GEANY_EXPORT_SYMBOL void on_tv_notebook_switch_page_after(GtkNotebook *notebook, gpointer page, +static void on_tv_notebook_switch_page_after(GtkNotebook *notebook, gpointer page, guint page_num, gpointer user_data) { ignore_callback = FALSE; @@ -596,7 +517,7 @@ static void convert_eol(gint mode) } -GEANY_EXPORT_SYMBOL void on_crlf_activate(GtkCheckMenuItem *menuitem, gpointer user_data) +static void on_crlf_activate(GtkCheckMenuItem *menuitem, gpointer user_data) { if (ignore_callback || ! gtk_check_menu_item_get_active(menuitem)) return; @@ -605,7 +526,7 @@ GEANY_EXPORT_SYMBOL void on_crlf_activate(GtkCheckMenuItem *menuitem, gpointer u } -GEANY_EXPORT_SYMBOL void on_lf_activate(GtkCheckMenuItem *menuitem, gpointer user_data) +static void on_lf_activate(GtkCheckMenuItem *menuitem, gpointer user_data) { if (ignore_callback || ! gtk_check_menu_item_get_active(menuitem)) return; @@ -614,7 +535,7 @@ GEANY_EXPORT_SYMBOL void on_lf_activate(GtkCheckMenuItem *menuitem, gpointer use } -GEANY_EXPORT_SYMBOL void on_cr_activate(GtkCheckMenuItem *menuitem, gpointer user_data) +static void on_cr_activate(GtkCheckMenuItem *menuitem, gpointer user_data) { if (ignore_callback || ! gtk_check_menu_item_get_active(menuitem)) return; @@ -623,7 +544,7 @@ GEANY_EXPORT_SYMBOL void on_cr_activate(GtkCheckMenuItem *menuitem, gpointer use } -GEANY_EXPORT_SYMBOL void on_replace_tabs_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_replace_tabs_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -644,7 +565,7 @@ gboolean toolbar_popup_menu(GtkWidget *widget, GdkEventButton *event, gpointer u } -GEANY_EXPORT_SYMBOL void on_toggle_case1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_toggle_case1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); ScintillaObject *sci; @@ -700,7 +621,7 @@ GEANY_EXPORT_SYMBOL void on_toggle_case1_activate(GtkMenuItem *menuitem, gpointe } -GEANY_EXPORT_SYMBOL void on_show_toolbar1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_show_toolbar1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -709,7 +630,7 @@ GEANY_EXPORT_SYMBOL void on_show_toolbar1_toggled(GtkCheckMenuItem *checkmenuite } -GEANY_EXPORT_SYMBOL void on_fullscreen1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_fullscreen1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -719,7 +640,7 @@ GEANY_EXPORT_SYMBOL void on_fullscreen1_toggled(GtkCheckMenuItem *checkmenuitem, } -GEANY_EXPORT_SYMBOL void on_show_messages_window1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_show_messages_window1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -729,13 +650,13 @@ GEANY_EXPORT_SYMBOL void on_show_messages_window1_toggled(GtkCheckMenuItem *chec } -GEANY_EXPORT_SYMBOL void on_menu_color_schemes_activate(GtkImageMenuItem *imagemenuitem, gpointer user_data) +static void on_menu_color_schemes_activate(GtkImageMenuItem *imagemenuitem, gpointer user_data) { highlighting_show_color_scheme_dialog(); } -GEANY_EXPORT_SYMBOL void on_markers_margin1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_markers_margin1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -745,7 +666,7 @@ GEANY_EXPORT_SYMBOL void on_markers_margin1_toggled(GtkCheckMenuItem *checkmenui } -GEANY_EXPORT_SYMBOL void on_show_line_numbers1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_show_line_numbers1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -755,7 +676,7 @@ GEANY_EXPORT_SYMBOL void on_show_line_numbers1_toggled(GtkCheckMenuItem *checkme } -GEANY_EXPORT_SYMBOL void on_menu_show_white_space1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_menu_show_white_space1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -765,7 +686,7 @@ GEANY_EXPORT_SYMBOL void on_menu_show_white_space1_toggled(GtkCheckMenuItem *che } -GEANY_EXPORT_SYMBOL void on_menu_show_line_endings1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_menu_show_line_endings1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -775,7 +696,7 @@ GEANY_EXPORT_SYMBOL void on_menu_show_line_endings1_toggled(GtkCheckMenuItem *ch } -GEANY_EXPORT_SYMBOL void on_menu_show_indentation_guides1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_menu_show_indentation_guides1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -785,7 +706,7 @@ GEANY_EXPORT_SYMBOL void on_menu_show_indentation_guides1_toggled(GtkCheckMenuIt } -GEANY_EXPORT_SYMBOL void on_line_wrapping1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +void on_line_wrapping1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (! ignore_callback) { @@ -797,7 +718,7 @@ GEANY_EXPORT_SYMBOL void on_line_wrapping1_toggled(GtkCheckMenuItem *checkmenuit } -GEANY_EXPORT_SYMBOL void on_set_file_readonly1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_set_file_readonly1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (! ignore_callback) { @@ -812,7 +733,7 @@ GEANY_EXPORT_SYMBOL void on_set_file_readonly1_toggled(GtkCheckMenuItem *checkme } -GEANY_EXPORT_SYMBOL void on_use_auto_indentation1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_use_auto_indentation1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (! ignore_callback) { @@ -850,13 +771,13 @@ static void find_usage(gboolean in_session) } -GEANY_EXPORT_SYMBOL void on_find_document_usage1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_document_usage1_activate(GtkMenuItem *menuitem, gpointer user_data) { find_usage(FALSE); } -GEANY_EXPORT_SYMBOL void on_find_usage1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_usage1_activate(GtkMenuItem *menuitem, gpointer user_data) { find_usage(TRUE); } @@ -880,25 +801,25 @@ static void goto_tag(gboolean definition) } -GEANY_EXPORT_SYMBOL void on_goto_tag_definition1(GtkMenuItem *menuitem, gpointer user_data) +static void on_goto_tag_definition1(GtkMenuItem *menuitem, gpointer user_data) { goto_tag(TRUE); } -GEANY_EXPORT_SYMBOL void on_goto_tag_declaration1(GtkMenuItem *menuitem, gpointer user_data) +static void on_goto_tag_declaration1(GtkMenuItem *menuitem, gpointer user_data) { goto_tag(FALSE); } -GEANY_EXPORT_SYMBOL void on_count_words1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_count_words1_activate(GtkMenuItem *menuitem, gpointer user_data) { tools_word_count(); } -GEANY_EXPORT_SYMBOL void on_show_color_chooser1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_show_color_chooser1_activate(GtkMenuItem *menuitem, gpointer user_data) { gchar colour[9]; GeanyDocument *doc = document_get_current(); @@ -918,19 +839,19 @@ void on_toolbutton_compile_clicked(GtkAction *action, gpointer user_data) } -GEANY_EXPORT_SYMBOL void on_find1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find1_activate(GtkMenuItem *menuitem, gpointer user_data) { search_show_find_dialog(); } -GEANY_EXPORT_SYMBOL void on_find_next1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_next1_activate(GtkMenuItem *menuitem, gpointer user_data) { search_find_again(FALSE); } -GEANY_EXPORT_SYMBOL void on_find_previous1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_previous1_activate(GtkMenuItem *menuitem, gpointer user_data) { if (search_data.flags & GEANY_FIND_REGEXP) /* Can't reverse search order for a regex (find next ignores search backwards) */ @@ -940,25 +861,25 @@ GEANY_EXPORT_SYMBOL void on_find_previous1_activate(GtkMenuItem *menuitem, gpoin } -GEANY_EXPORT_SYMBOL void on_find_nextsel1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_nextsel1_activate(GtkMenuItem *menuitem, gpointer user_data) { search_find_selection(document_get_current(), FALSE); } -GEANY_EXPORT_SYMBOL void on_find_prevsel1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_prevsel1_activate(GtkMenuItem *menuitem, gpointer user_data) { search_find_selection(document_get_current(), TRUE); } -GEANY_EXPORT_SYMBOL void on_replace1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_replace1_activate(GtkMenuItem *menuitem, gpointer user_data) { search_show_replace_dialog(); } -GEANY_EXPORT_SYMBOL void on_find_in_files1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_find_in_files1_activate(GtkMenuItem *menuitem, gpointer user_data) { search_show_find_in_files_dialog(NULL); } @@ -979,7 +900,7 @@ static void get_line_and_offset_from_text(const gchar *text, gint *line_no, gint } -GEANY_EXPORT_SYMBOL void on_go_to_line_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_go_to_line_activate(GtkMenuItem *menuitem, gpointer user_data) { static gchar value[16] = ""; gchar *result; @@ -1037,7 +958,7 @@ void on_toolbutton_goto_clicked(GtkAction *action, gpointer user_data) } -GEANY_EXPORT_SYMBOL void on_help1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_help1_activate(GtkMenuItem *menuitem, gpointer user_data) { gchar *uri; @@ -1047,37 +968,37 @@ GEANY_EXPORT_SYMBOL void on_help1_activate(GtkMenuItem *menuitem, gpointer user_ } -GEANY_EXPORT_SYMBOL void on_help_shortcuts1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_help_shortcuts1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_show_shortcuts(); } -GEANY_EXPORT_SYMBOL void on_website1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_website1_activate(GtkMenuItem *menuitem, gpointer user_data) { utils_open_browser(GEANY_HOMEPAGE); } -GEANY_EXPORT_SYMBOL void on_help_menu_item_donate_activate(GtkMenuItem *item, gpointer user_data) +static void on_help_menu_item_donate_activate(GtkMenuItem *item, gpointer user_data) { utils_open_browser(GEANY_DONATE); } -GEANY_EXPORT_SYMBOL void on_help_menu_item_wiki_activate(GtkMenuItem *item, gpointer user_data) +static void on_help_menu_item_wiki_activate(GtkMenuItem *item, gpointer user_data) { utils_open_browser(GEANY_WIKI); } -GEANY_EXPORT_SYMBOL void on_help_menu_item_bug_report_activate(GtkMenuItem *item, gpointer user_data) +static void on_help_menu_item_bug_report_activate(GtkMenuItem *item, gpointer user_data) { utils_open_browser(GEANY_BUG_REPORT); } -GEANY_EXPORT_SYMBOL void on_comments_function_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_comments_function_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); gchar *text; @@ -1131,13 +1052,13 @@ static void insert_multiline_comment(GeanyDocument *doc, gint pos) } -GEANY_EXPORT_SYMBOL void on_comments_multiline_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_comments_multiline_activate(GtkMenuItem *menuitem, gpointer user_data) { insert_multiline_comment(document_get_current(), editor_info.click_pos); } -GEANY_EXPORT_SYMBOL void on_menu_comments_multiline_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_comments_multiline_activate(GtkMenuItem *menuitem, gpointer user_data) { insert_multiline_comment(document_get_current(), -1); } @@ -1163,31 +1084,31 @@ static void insert_comment_template(GeanyDocument *doc, gint pos, guint template } -GEANY_EXPORT_SYMBOL void on_comments_gpl_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_comments_gpl_activate(GtkMenuItem *menuitem, gpointer user_data) { insert_comment_template(document_get_current(), editor_info.click_pos, GEANY_TEMPLATE_GPL); } -GEANY_EXPORT_SYMBOL void on_menu_comments_gpl_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_comments_gpl_activate(GtkMenuItem *menuitem, gpointer user_data) { insert_comment_template(document_get_current(), -1, GEANY_TEMPLATE_GPL); } -GEANY_EXPORT_SYMBOL void on_comments_bsd_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_comments_bsd_activate(GtkMenuItem *menuitem, gpointer user_data) { insert_comment_template(document_get_current(), editor_info.click_pos, GEANY_TEMPLATE_BSD); } -GEANY_EXPORT_SYMBOL void on_menu_comments_bsd_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_comments_bsd_activate(GtkMenuItem *menuitem, gpointer user_data) { insert_comment_template(document_get_current(), -1, GEANY_TEMPLATE_BSD); } -GEANY_EXPORT_SYMBOL void on_comments_changelog_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_comments_changelog_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); gchar *text; @@ -1206,7 +1127,7 @@ GEANY_EXPORT_SYMBOL void on_comments_changelog_activate(GtkMenuItem *menuitem, g } -GEANY_EXPORT_SYMBOL void on_comments_fileheader_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_comments_fileheader_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); gchar *text; @@ -1227,7 +1148,7 @@ GEANY_EXPORT_SYMBOL void on_comments_fileheader_activate(GtkMenuItem *menuitem, } -GEANY_EXPORT_SYMBOL void on_file_properties_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_file_properties_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1236,7 +1157,7 @@ GEANY_EXPORT_SYMBOL void on_file_properties_activate(GtkMenuItem *menuitem, gpoi } -GEANY_EXPORT_SYMBOL void on_menu_fold_all1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_fold_all1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1245,7 +1166,7 @@ GEANY_EXPORT_SYMBOL void on_menu_fold_all1_activate(GtkMenuItem *menuitem, gpoin } -GEANY_EXPORT_SYMBOL void on_menu_unfold_all1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_unfold_all1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1260,7 +1181,7 @@ void on_toolbutton_run_clicked(GtkAction *action, gpointer user_data) } -GEANY_EXPORT_SYMBOL void on_menu_remove_indicators1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_remove_indicators1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1269,7 +1190,7 @@ GEANY_EXPORT_SYMBOL void on_menu_remove_indicators1_activate(GtkMenuItem *menuit } -GEANY_EXPORT_SYMBOL void on_print1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_print1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1278,7 +1199,7 @@ GEANY_EXPORT_SYMBOL void on_print1_activate(GtkMenuItem *menuitem, gpointer user } -GEANY_EXPORT_SYMBOL void on_menu_select_all1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_select_all1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1287,7 +1208,7 @@ GEANY_EXPORT_SYMBOL void on_menu_select_all1_activate(GtkMenuItem *menuitem, gpo } -GEANY_EXPORT_SYMBOL void on_menu_show_sidebar1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +void on_menu_show_sidebar1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (ignore_callback) return; @@ -1314,7 +1235,7 @@ GEANY_EXPORT_SYMBOL void on_menu_show_sidebar1_toggled(GtkCheckMenuItem *checkme } -GEANY_EXPORT_SYMBOL void on_menu_write_unicode_bom1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) +static void on_menu_write_unicode_bom1_toggled(GtkCheckMenuItem *checkmenuitem, gpointer user_data) { if (! ignore_callback) { @@ -1336,7 +1257,7 @@ GEANY_EXPORT_SYMBOL void on_menu_write_unicode_bom1_toggled(GtkCheckMenuItem *ch } -GEANY_EXPORT_SYMBOL void on_menu_comment_line1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_comment_line1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1345,7 +1266,7 @@ GEANY_EXPORT_SYMBOL void on_menu_comment_line1_activate(GtkMenuItem *menuitem, g } -GEANY_EXPORT_SYMBOL void on_menu_uncomment_line1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_uncomment_line1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1354,7 +1275,7 @@ GEANY_EXPORT_SYMBOL void on_menu_uncomment_line1_activate(GtkMenuItem *menuitem, } -GEANY_EXPORT_SYMBOL void on_menu_toggle_line_commentation1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_toggle_line_commentation1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1363,7 +1284,7 @@ GEANY_EXPORT_SYMBOL void on_menu_toggle_line_commentation1_activate(GtkMenuItem } -GEANY_EXPORT_SYMBOL void on_menu_increase_indent1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_increase_indent1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1372,7 +1293,7 @@ GEANY_EXPORT_SYMBOL void on_menu_increase_indent1_activate(GtkMenuItem *menuitem } -GEANY_EXPORT_SYMBOL void on_menu_decrease_indent1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_decrease_indent1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1381,7 +1302,7 @@ GEANY_EXPORT_SYMBOL void on_menu_decrease_indent1_activate(GtkMenuItem *menuitem } -GEANY_EXPORT_SYMBOL void on_next_message1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_next_message1_activate(GtkMenuItem *menuitem, gpointer user_data) { if (! ui_tree_view_find_next(GTK_TREE_VIEW(msgwindow.tree_msg), msgwin_goto_messages_file_line)) @@ -1389,7 +1310,7 @@ GEANY_EXPORT_SYMBOL void on_next_message1_activate(GtkMenuItem *menuitem, gpoint } -GEANY_EXPORT_SYMBOL void on_previous_message1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_previous_message1_activate(GtkMenuItem *menuitem, gpointer user_data) { if (! ui_tree_view_find_previous(GTK_TREE_VIEW(msgwindow.tree_msg), msgwin_goto_messages_file_line)) @@ -1397,31 +1318,31 @@ GEANY_EXPORT_SYMBOL void on_previous_message1_activate(GtkMenuItem *menuitem, gp } -GEANY_EXPORT_SYMBOL void on_project_new1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_project_new1_activate(GtkMenuItem *menuitem, gpointer user_data) { project_new(); } -GEANY_EXPORT_SYMBOL void on_project_open1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_project_open1_activate(GtkMenuItem *menuitem, gpointer user_data) { project_open(); } -GEANY_EXPORT_SYMBOL void on_project_close1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_project_close1_activate(GtkMenuItem *menuitem, gpointer user_data) { project_close(TRUE); } -GEANY_EXPORT_SYMBOL void on_project_properties1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_project_properties1_activate(GtkMenuItem *menuitem, gpointer user_data) { project_properties(); } -GEANY_EXPORT_SYMBOL void on_menu_project1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_project1_activate(GtkMenuItem *menuitem, gpointer user_data) { static GtkWidget *item_close = NULL; static GtkWidget *item_properties = NULL; @@ -1439,7 +1360,7 @@ GEANY_EXPORT_SYMBOL void on_menu_project1_activate(GtkMenuItem *menuitem, gpoint } -GEANY_EXPORT_SYMBOL void on_menu_open_selected_file1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_open_selected_file1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); gchar *sel = NULL; @@ -1505,7 +1426,7 @@ GEANY_EXPORT_SYMBOL void on_menu_open_selected_file1_activate(GtkMenuItem *menui } -GEANY_EXPORT_SYMBOL void on_remove_markers1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_remove_markers1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); g_return_if_fail(doc != NULL); @@ -1516,13 +1437,13 @@ GEANY_EXPORT_SYMBOL void on_remove_markers1_activate(GtkMenuItem *menuitem, gpoi } -GEANY_EXPORT_SYMBOL void on_load_tags1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_load_tags1_activate(GtkMenuItem *menuitem, gpointer user_data) { symbols_show_load_tags_dialog(); } -GEANY_EXPORT_SYMBOL void on_context_action1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_context_action1_activate(GtkMenuItem *menuitem, gpointer user_data) { gchar *word, *command; GError *error = NULL; @@ -1566,7 +1487,7 @@ GEANY_EXPORT_SYMBOL void on_context_action1_activate(GtkMenuItem *menuitem, gpoi } -GEANY_EXPORT_SYMBOL void on_menu_toggle_all_additional_widgets1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_menu_toggle_all_additional_widgets1_activate(GtkMenuItem *menuitem, gpointer user_data) { static gint hide_all = -1; GtkCheckMenuItem *msgw = GTK_CHECK_MENU_ITEM( @@ -1631,6 +1552,7 @@ void on_toolbutton_back_activate(GtkAction *menuitem, gpointer user_data) } +GEANY_EXPORT_SYMBOL gboolean on_motion_event(GtkWidget *widget, GdkEventMotion *event, gpointer user_data) { if (prefs.auto_focus && ! gtk_widget_has_focus(widget)) @@ -1655,25 +1577,25 @@ static void set_indent_type(GtkCheckMenuItem *menuitem, GeanyIndentType type) } -GEANY_EXPORT_SYMBOL void on_tabs1_activate(GtkCheckMenuItem *menuitem, gpointer user_data) +static void on_tabs1_activate(GtkCheckMenuItem *menuitem, gpointer user_data) { set_indent_type(menuitem, GEANY_INDENT_TYPE_TABS); } -GEANY_EXPORT_SYMBOL void on_spaces1_activate(GtkCheckMenuItem *menuitem, gpointer user_data) +static void on_spaces1_activate(GtkCheckMenuItem *menuitem, gpointer user_data) { set_indent_type(menuitem, GEANY_INDENT_TYPE_SPACES); } -GEANY_EXPORT_SYMBOL void on_tabs_and_spaces1_activate(GtkCheckMenuItem *menuitem, gpointer user_data) +static void on_tabs_and_spaces1_activate(GtkCheckMenuItem *menuitem, gpointer user_data) { set_indent_type(menuitem, GEANY_INDENT_TYPE_BOTH); } -GEANY_EXPORT_SYMBOL void on_strip_trailing_spaces1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_strip_trailing_spaces1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc; @@ -1687,13 +1609,13 @@ GEANY_EXPORT_SYMBOL void on_strip_trailing_spaces1_activate(GtkMenuItem *menuite } -GEANY_EXPORT_SYMBOL void on_page_setup1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_page_setup1_activate(GtkMenuItem *menuitem, gpointer user_data) { printing_page_setup_gtk(); } -GEANY_EXPORT_SYMBOL gboolean on_escape_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data) +gboolean on_escape_key_press_event(GtkWidget *widget, GdkEventKey *event, gpointer user_data) { guint state = keybindings_get_modifiers(event->state); @@ -1707,7 +1629,7 @@ GEANY_EXPORT_SYMBOL gboolean on_escape_key_press_event(GtkWidget *widget, GdkEve } -GEANY_EXPORT_SYMBOL void on_line_breaking1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_line_breaking1_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc; @@ -1721,7 +1643,7 @@ GEANY_EXPORT_SYMBOL void on_line_breaking1_activate(GtkMenuItem *menuitem, gpoin } -GEANY_EXPORT_SYMBOL void on_replace_spaces_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_replace_spaces_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); @@ -1731,7 +1653,7 @@ GEANY_EXPORT_SYMBOL void on_replace_spaces_activate(GtkMenuItem *menuitem, gpoin } -GEANY_EXPORT_SYMBOL void on_search1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_search1_activate(GtkMenuItem *menuitem, gpointer user_data) { GtkWidget *next_message = ui_lookup_widget(main_widgets.window, "next_message1"); GtkWidget *previous_message = ui_lookup_widget(main_widgets.window, "previous_message1"); @@ -1748,7 +1670,7 @@ GEANY_EXPORT_SYMBOL void on_search1_activate(GtkMenuItem *menuitem, gpointer use /* simple implementation (vs. close all which doesn't close documents if cancelled), * if user_data is set, it is the GeanyDocument to keep */ -GEANY_EXPORT_SYMBOL void on_close_other_documents1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_close_other_documents1_activate(GtkMenuItem *menuitem, gpointer user_data) { guint i; GeanyDocument *cur_doc = user_data; @@ -1769,19 +1691,19 @@ GEANY_EXPORT_SYMBOL void on_close_other_documents1_activate(GtkMenuItem *menuite } -GEANY_EXPORT_SYMBOL void on_menu_reload_configuration1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_menu_reload_configuration1_activate(GtkMenuItem *menuitem, gpointer user_data) { main_reload_configuration(); } -GEANY_EXPORT_SYMBOL void on_debug_messages1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_debug_messages1_activate(GtkMenuItem *menuitem, gpointer user_data) { log_show_debug_messages_dialog(); } -GEANY_EXPORT_SYMBOL void on_send_selection_to_vte1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_send_selection_to_vte1_activate(GtkMenuItem *menuitem, gpointer user_data) { #ifdef HAVE_VTE if (vte_info.have_vte) @@ -1790,7 +1712,7 @@ GEANY_EXPORT_SYMBOL void on_send_selection_to_vte1_activate(GtkMenuItem *menuite } -GEANY_EXPORT_SYMBOL gboolean on_window_state_event(GtkWidget *widget, GdkEventWindowState *event, gpointer user_data) +static gboolean on_window_state_event(GtkWidget *widget, GdkEventWindowState *event, gpointer user_data) { if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) @@ -1824,7 +1746,7 @@ static void show_notebook_page(const gchar *notebook_name, const gchar *page_nam } -GEANY_EXPORT_SYMBOL void on_customize_toolbar1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_customize_toolbar1_activate(GtkMenuItem *menuitem, gpointer user_data) { prefs_show_dialog(); @@ -1835,91 +1757,91 @@ GEANY_EXPORT_SYMBOL void on_customize_toolbar1_activate(GtkMenuItem *menuitem, g } -GEANY_EXPORT_SYMBOL void on_button_customize_toolbar_clicked(GtkButton *button, gpointer user_data) +static void on_button_customize_toolbar_clicked(GtkButton *button, gpointer user_data) { toolbar_configure(GTK_WINDOW(ui_widgets.prefs_dialog)); } -GEANY_EXPORT_SYMBOL void on_cut_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_cut_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_CLIPBOARD, GEANY_KEYS_CLIPBOARD_CUTLINE); } -GEANY_EXPORT_SYMBOL void on_copy_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_copy_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_CLIPBOARD, GEANY_KEYS_CLIPBOARD_COPYLINE); } -GEANY_EXPORT_SYMBOL void on_delete_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_delete_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_DELETELINE); } -GEANY_EXPORT_SYMBOL void on_duplicate_line_or_selection1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_duplicate_line_or_selection1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_DUPLICATELINE); } -GEANY_EXPORT_SYMBOL void on_select_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_select_current_lines1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_LINE); } -GEANY_EXPORT_SYMBOL void on_select_current_paragraph1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_select_current_paragraph1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_PARAGRAPH); } -GEANY_EXPORT_SYMBOL void on_insert_alternative_white_space1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_insert_alternative_white_space1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_INSERT, GEANY_KEYS_INSERT_ALTWHITESPACE); } -GEANY_EXPORT_SYMBOL void on_go_to_next_marker1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_go_to_next_marker1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_NEXTMARKER); } -GEANY_EXPORT_SYMBOL void on_go_to_previous_marker1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_go_to_previous_marker1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_GOTO, GEANY_KEYS_GOTO_PREVIOUSMARKER); } -GEANY_EXPORT_SYMBOL void on_reflow_lines_block1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_reflow_lines_block1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_FORMAT, GEANY_KEYS_FORMAT_REFLOWPARAGRAPH); } -GEANY_EXPORT_SYMBOL void on_move_lines_up1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_move_lines_up1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_MOVELINEUP); } -GEANY_EXPORT_SYMBOL void on_move_lines_down1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_move_lines_down1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_EDITOR, GEANY_KEYS_EDITOR_MOVELINEDOWN); } -GEANY_EXPORT_SYMBOL void on_smart_line_indent1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_smart_line_indent1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_FORMAT, GEANY_KEYS_FORMAT_AUTOINDENT); } -GEANY_EXPORT_SYMBOL void on_plugin_preferences1_activate(GtkMenuItem *menuitem, gpointer user_data) +void on_plugin_preferences1_activate(GtkMenuItem *menuitem, gpointer user_data) { #ifdef HAVE_PLUGINS plugin_show_configure(NULL); @@ -1927,7 +1849,7 @@ GEANY_EXPORT_SYMBOL void on_plugin_preferences1_activate(GtkMenuItem *menuitem, } -GEANY_EXPORT_SYMBOL void on_indent_width_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_indent_width_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc; gchar *label; @@ -1946,7 +1868,7 @@ GEANY_EXPORT_SYMBOL void on_indent_width_activate(GtkMenuItem *menuitem, gpointe } -GEANY_EXPORT_SYMBOL void on_reset_indentation1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_reset_indentation1_activate(GtkMenuItem *menuitem, gpointer user_data) { guint i; @@ -1958,13 +1880,13 @@ GEANY_EXPORT_SYMBOL void on_reset_indentation1_activate(GtkMenuItem *menuitem, g } -GEANY_EXPORT_SYMBOL void on_mark_all1_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_mark_all1_activate(GtkMenuItem *menuitem, gpointer user_data) { keybindings_send_command(GEANY_KEY_GROUP_SEARCH, GEANY_KEYS_SEARCH_MARKALL); } -GEANY_EXPORT_SYMBOL void on_detect_type_from_file_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_detect_type_from_file_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); GeanyIndentType type; @@ -1977,7 +1899,7 @@ GEANY_EXPORT_SYMBOL void on_detect_type_from_file_activate(GtkMenuItem *menuitem } -GEANY_EXPORT_SYMBOL void on_detect_width_from_file_activate(GtkMenuItem *menuitem, gpointer user_data) +static void on_detect_width_from_file_activate(GtkMenuItem *menuitem, gpointer user_data) { GeanyDocument *doc = document_get_current(); gint width; diff --git a/src/project.c b/src/project.c index 761061f02..9eeece291 100644 --- a/src/project.c +++ b/src/project.c @@ -474,8 +474,7 @@ static void destroy_project(gboolean open_default) /* Shows the file chooser dialog when base path button is clicked * FIXME: this should be connected in Glade but 3.8.1 has a bug * where it won't pass any objects as user data (#588824). */ -GEANY_EXPORT_SYMBOL void -on_project_properties_base_path_button_clicked(GtkWidget *button, +static void on_project_properties_base_path_button_clicked(GtkWidget *button, GtkWidget *base_path_entry) { GtkWidget *dialog;