Add ui_button_new_with_image() to plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2223 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2008-02-04 13:40:14 +00:00
parent b8f92279c3
commit 43704d8ebe
3 changed files with 7 additions and 2 deletions

View File

@ -8,6 +8,8 @@
Yura Siamashka).
* doc/geany.txt, doc/geany.html, NEWS:
Show default shortcuts in Keybindings section.
* src/plugindata.h, src/plugins.c:
Add ui_button_new_with_image() to plugin API.
2008-02-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -93,7 +93,7 @@
/* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */
static const gint api_version = 41;
static const gint api_version = 42;
/* The ABI version should be incremented whenever existing fields in the plugin
* data types below have to be changed or reordered. It should stay the same if fields
@ -302,8 +302,10 @@ typedef struct UIUtilsFuncs
/* set_statusbar() also appends to the message window status tab if log is TRUE. */
void (*set_statusbar) (gboolean log, const gchar *format, ...) G_GNUC_PRINTF (2, 3);
void (*table_add_row) (GtkTable *table, gint row, ...) G_GNUC_NULL_TERMINATED;
GtkWidget* (*path_box_new) (const gchar *title, GtkFileChooserAction action, GtkEntry *entry);
GtkWidget* (*button_new_with_image) (const gchar *stock_id, const gchar *text);
}
UIUtilsFuncs;
@ -311,7 +313,7 @@ typedef struct DialogFuncs
{
gboolean (*show_question) (const gchar *text, ...);
void (*show_msgbox) (gint type, const gchar *text, ...);
gboolean (*show_save_as) (void);
gboolean (*show_save_as) ();
}
DialogFuncs;

View File

@ -162,6 +162,7 @@ static UIUtilsFuncs uiutils_funcs = {
&ui_set_statusbar,
&ui_table_add_row,
&ui_path_box_new,
&ui_button_new_with_image,
};
static DialogFuncs dialog_funcs = {