2
2
* plugindata.h - this file is part of Geany, a fast and lightweight IDE
4
* Copyright 2007-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5
* Copyright 2007-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
4
* Copyright 2007-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5
* Copyright 2007-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7
7
* This program is free software; you can redistribute it and/or modify
8
8
* it under the terms of the GNU General Public License as published by
54
54
* @warning You should not test for values below 200 as previously
55
55
* @c GEANY_API_VERSION was defined as an enum value, not a macro.
57
#define GEANY_API_VERSION 201
57
#define GEANY_API_VERSION 211
59
59
/** The Application Binary Interface (ABI) version, incremented whenever
60
60
* existing fields in the plugin data types have to be changed or reordered.
310
310
const GdkColor* (*document_get_status_color) (struct GeanyDocument *doc);
311
311
gchar* (*document_get_basename_for_display) (struct GeanyDocument *doc, gint length);
312
312
gint (*document_get_notebook_page) (struct GeanyDocument *doc);
313
gint (*document_compare_by_display_name) (gconstpointer a, gconstpointer b);
314
gint (*document_compare_by_tab_order) (gconstpointer a, gconstpointer b);
315
gint (*document_compare_by_tab_order_reverse) (gconstpointer a, gconstpointer b);
473
477
gint (*ui_get_gtk_settings_integer) (const gchar *property_name, gint default_value);
474
478
void (*ui_combo_box_add_to_history) (GtkComboBoxEntry *combo_entry,
475
479
const gchar *text, gint history_len);
480
void (*ui_menu_add_document_items_sorted) (GtkMenu *menu, struct GeanyDocument *active,
481
GCallback callback, GCompareFunc compare_func);
644
651
struct GeanyKeyGroup* (*plugin_set_key_group)(GeanyPlugin *plugin,
645
652
const gchar *section_name, gsize count, _GeanyKeyGroupCallback callback);
646
653
void (*plugin_show_configure)(GeanyPlugin *plugin);
654
guint (*plugin_timeout_add) (GeanyPlugin *plugin, guint interval, GSourceFunc function,
656
guint (*plugin_timeout_add_seconds) (GeanyPlugin *plugin, guint interval,
657
GSourceFunc function, gpointer data);
658
guint (*plugin_idle_add) (GeanyPlugin *plugin, GSourceFunc function, gpointer data);
669
681
gint (*stash_group_save_to_file)(struct StashGroup *group, const gchar *filename,
670
682
GKeyFileFlags flags);
671
683
void (*stash_group_add_toggle_button)(struct StashGroup *group, gboolean *setting,
672
const gchar *key_name, gboolean default_value, gpointer widget_id);
684
const gchar *key_name, gboolean default_value, gconstpointer widget_id);
673
685
void (*stash_group_add_radio_buttons)(struct StashGroup *group, gint *setting,
674
686
const gchar *key_name, gint default_value,
675
gpointer widget_id, gint enum_id, ...) G_GNUC_NULL_TERMINATED;
687
gconstpointer widget_id, gint enum_id, ...) G_GNUC_NULL_TERMINATED;
676
688
void (*stash_group_add_spin_button_integer)(struct StashGroup *group, gint *setting,
677
const gchar *key_name, gint default_value, gpointer widget_id);
689
const gchar *key_name, gint default_value, gconstpointer widget_id);
678
690
void (*stash_group_add_combo_box)(struct StashGroup *group, gint *setting,
679
const gchar *key_name, gint default_value, gpointer widget_id);
691
const gchar *key_name, gint default_value, gconstpointer widget_id);
680
692
void (*stash_group_add_combo_box_entry)(struct StashGroup *group, gchar **setting,
681
const gchar *key_name, const gchar *default_value, gpointer widget_id);
693
const gchar *key_name, const gchar *default_value, gconstpointer widget_id);
682
694
void (*stash_group_add_entry)(struct StashGroup *group, gchar **setting,
683
const gchar *key_name, const gchar *default_value, gpointer widget_id);
695
const gchar *key_name, const gchar *default_value, gconstpointer widget_id);
684
696
void (*stash_group_add_widget_property)(struct StashGroup *group, gpointer setting,
685
const gchar *key_name, gpointer default_value, gpointer widget_id,
697
const gchar *key_name, gpointer default_value, gconstpointer widget_id,
686
698
const gchar *property_name, GType type);
687
699
void (*stash_group_display)(struct StashGroup *group, GtkWidget *owner);
688
700
void (*stash_group_update)(struct StashGroup *group, GtkWidget *owner);