Kaydet (Commit) 43704d8e authored tarafından Nick Treleaven's avatar Nick Treleaven

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
üst b8f92279
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
Yura Siamashka). Yura Siamashka).
* doc/geany.txt, doc/geany.html, NEWS: * doc/geany.txt, doc/geany.html, NEWS:
Show default shortcuts in Keybindings section. 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> 2008-02-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
/* The API version should be incremented whenever any plugin data types below are /* The API version should be incremented whenever any plugin data types below are
* modified or appended to. */ * 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 /* 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 * data types below have to be changed or reordered. It should stay the same if fields
...@@ -302,8 +302,10 @@ typedef struct UIUtilsFuncs ...@@ -302,8 +302,10 @@ typedef struct UIUtilsFuncs
/* set_statusbar() also appends to the message window status tab if log is TRUE. */ /* 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 (*set_statusbar) (gboolean log, const gchar *format, ...) G_GNUC_PRINTF (2, 3);
void (*table_add_row) (GtkTable *table, gint row, ...) G_GNUC_NULL_TERMINATED; void (*table_add_row) (GtkTable *table, gint row, ...) G_GNUC_NULL_TERMINATED;
GtkWidget* (*path_box_new) (const gchar *title, GtkFileChooserAction action, GtkEntry *entry); GtkWidget* (*path_box_new) (const gchar *title, GtkFileChooserAction action, GtkEntry *entry);
GtkWidget* (*button_new_with_image) (const gchar *stock_id, const gchar *text);
} }
UIUtilsFuncs; UIUtilsFuncs;
...@@ -311,7 +313,7 @@ typedef struct DialogFuncs ...@@ -311,7 +313,7 @@ typedef struct DialogFuncs
{ {
gboolean (*show_question) (const gchar *text, ...); gboolean (*show_question) (const gchar *text, ...);
void (*show_msgbox) (gint type, const gchar *text, ...); void (*show_msgbox) (gint type, const gchar *text, ...);
gboolean (*show_save_as) (void); gboolean (*show_save_as) ();
} }
DialogFuncs; DialogFuncs;
......
...@@ -162,6 +162,7 @@ static UIUtilsFuncs uiutils_funcs = { ...@@ -162,6 +162,7 @@ static UIUtilsFuncs uiutils_funcs = {
&ui_set_statusbar, &ui_set_statusbar,
&ui_table_add_row, &ui_table_add_row,
&ui_path_box_new, &ui_path_box_new,
&ui_button_new_with_image,
}; };
static DialogFuncs dialog_funcs = { static DialogFuncs dialog_funcs = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment