Kaydet (Commit) f78e8e60 authored tarafından Matthew Brush's avatar Matthew Brush Kaydeden (comit) Matthew Brush

Add ui_hookup_object() and ui_lookup_object() functions to the plugin API.

TODO: Increment the plugin API number if/when this gets committed.
üst af093c2d
......@@ -302,6 +302,10 @@
geany_functions->p_ui->ui_combo_box_add_to_history
#define ui_menu_add_document_items_sorted \
geany_functions->p_ui->ui_menu_add_document_items_sorted
#define ui_hookup_object \
geany_functions->p_ui->ui_hookup_object
#define ui_lookup_object \
geany_functions->p_ui->ui_lookup_object
#define dialogs_show_question \
geany_functions->p_dialogs->dialogs_show_question
#define dialogs_show_msgbox \
......
......@@ -477,6 +477,8 @@ typedef struct UIUtilsFuncs
const gchar *text, gint history_len);
void (*ui_menu_add_document_items_sorted) (GtkMenu *menu, struct GeanyDocument *active,
GCallback callback, GCompareFunc compare_func);
void (*ui_hookup_object) (GObject *obj, const gchar *object_name);
GObject* (*ui_lookup_object) (const gchar *object_name);
}
UIUtilsFuncs;
......
......@@ -246,7 +246,9 @@ static UIUtilsFuncs uiutils_funcs = {
&ui_is_keyval_enter_or_return,
&ui_get_gtk_settings_integer,
&ui_combo_box_add_to_history,
&ui_menu_add_document_items_sorted
&ui_menu_add_document_items_sorted,
&ui_hookup_object,
&ui_lookup_object
};
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