22#ifndef GEANY_PLUGIN_UTILS_H
23#define GEANY_PLUGIN_UTILS_H 1
44 GObject *
object,
const gchar *signal_name, gboolean after,
45 GCallback callback, gpointer user_data);
59 const gchar *section_name, gsize
count,
GeanyKeyGroupFunc cb, gpointer pdata, GDestroyNotify destroy_notify);
64 GtkBuilder *
builder, gpointer user_data);
70 const gchar *key, gpointer data);
74 GDestroyNotify free_func);
Configurable keyboard shortcuts.
gboolean(* GeanyKeyGroupCallback)(guint key_id)
Function pointer type used for keybinding group callbacks.
gboolean(* GeanyKeyGroupFunc)(GeanyKeyGroup *group, guint key_id, gpointer user_data)
Function pointer type used for keybinding group callbacks, with userdata for passing context.
void plugin_signal_connect(struct GeanyPlugin *plugin, GObject *object, const gchar *signal_name, gboolean after, GCallback callback, gpointer user_data)
<simplesect kind="geany:skip"></simplesect> Connects a signal which will be disconnected on unloading...
guint plugin_timeout_add_seconds(struct GeanyPlugin *plugin, guint interval, GSourceFunc function, gpointer data)
<simplesect kind="geany:skip"></simplesect> Adds a GLib main loop timeout callback that will be remov...
void plugin_set_document_data_full(struct GeanyPlugin *plugin, struct GeanyDocument *doc, const gchar *key, gpointer data, GDestroyNotify free_func)
Attach plugin-specific data and a free function to a document.
void plugin_show_configure(struct GeanyPlugin *plugin)
Shows the plugin's configure dialog.
void plugin_set_document_data(struct GeanyPlugin *plugin, struct GeanyDocument *doc, const gchar *key, gpointer data)
Attach plugin-specific data to a document.
void plugin_add_toolbar_item(struct GeanyPlugin *plugin, GtkToolItem *item)
Inserts a toolbar item before the Quit button, or after the previous plugin toolbar item.
gpointer plugin_get_document_data(struct GeanyPlugin *plugin, struct GeanyDocument *doc, const gchar *key)
Retrieve plugin-specific data attached to a document.
struct GeanyKeyGroup * plugin_set_key_group(struct GeanyPlugin *plugin, const gchar *section_name, gsize count, GeanyKeyGroupCallback callback)
<simplesect kind="geany:skip"></simplesect> Sets up or resizes a keybinding group for the plugin.
void plugin_builder_connect_signals(struct GeanyPlugin *plugin, GtkBuilder *builder, gpointer user_data)
Allows auto-connecting Glade/GtkBuilder signals in plugins.
gint geany_api_version(void)
Returns the runtime API version Geany was compiled with.
void plugin_module_make_resident(struct GeanyPlugin *plugin)
Ensures that a plugin's module (*.so) will never be unloaded.
guint plugin_idle_add(struct GeanyPlugin *plugin, GSourceFunc function, gpointer data)
<simplesect kind="geany:skip"></simplesect> Adds a GLib main loop IDLE callback that will be removed ...
guint plugin_timeout_add(struct GeanyPlugin *plugin, guint interval, GSourceFunc function, gpointer data)
<simplesect kind="geany:skip"></simplesect> Adds a GLib main loop timeout callback that will be remov...
GeanyKeyGroup * plugin_set_key_group_full(struct GeanyPlugin *plugin, const gchar *section_name, gsize count, GeanyKeyGroupFunc cb, gpointer pdata, GDestroyNotify destroy_notify)
Sets up or resizes a keybinding group for the plugin.
Structure for representing an open tab with all its properties.
GeanyKeyGroupCallback callback
Basic information for the plugin and identification.
static GtkBuilder * builder