From 43704d8ebe797305992ab37842eb86e286577b17 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 4 Feb 2008 13:40:14 +0000 Subject: [PATCH] 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 --- ChangeLog | 2 ++ src/plugindata.h | 6 ++++-- src/plugins.c | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9d9548c5..6c6d8c88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/plugindata.h b/src/plugindata.h index 3bc23a89..241f80e1 100644 --- a/src/plugindata.h +++ b/src/plugindata.h @@ -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; diff --git a/src/plugins.c b/src/plugins.c index 55a9f3a3..679f9b6d 100644 --- a/src/plugins.c +++ b/src/plugins.c @@ -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 = {