~ubuntu-branches/ubuntu/raring/geany/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugindata.h

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-12-10 07:43:26 UTC
  • mfrom: (3.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20111210074326-s8yqbew5i20h33tf
Tags: 0.21-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  - debian/patches/20_use_evince_viewer.patch:
     + use evince as viewer for pdf and dvi files
  - debian/patches/20_use_x_terminal_emulator.patch:
     + use x-terminal-emulator as terminal
  - debian/control
     + Add breaks on geany-plugins-common << 0.20
* Also fixes bugs:
  - Filter for MATLAB/Octave files filters everythign (LP: 885505)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *      plugindata.h - this file is part of Geany, a fast and lightweight IDE
3
3
 *
4
 
 *      Copyright 2007-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5
 
 *      Copyright 2007-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
 
4
 *      Copyright 2007-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
 
5
 *      Copyright 2007-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
6
6
 *
7
7
 *      This program is free software; you can redistribute it and/or modify
8
8
 *      it under the terms of the GNU General Public License as published by
19
19
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
20
 *      MA 02110-1301, USA.
21
21
 *
22
 
 * $Id: plugindata.h 5497 2010-12-22 16:59:38Z ntrel $
 
22
 * $Id: plugindata.h 5859 2011-06-18 14:54:50Z colombanw $
23
23
 */
24
24
 
25
25
/**
54
54
 * @warning You should not test for values below 200 as previously
55
55
 * @c GEANY_API_VERSION was defined as an enum value, not a macro.
56
56
 */
57
 
#define GEANY_API_VERSION 201
 
57
#define GEANY_API_VERSION 211
58
58
 
59
59
/** The Application Binary Interface (ABI) version, incremented whenever
60
60
 * existing fields in the plugin data types have to be changed or reordered.
310
310
        const GdkColor* (*document_get_status_color) (struct GeanyDocument *doc);
311
311
        gchar*          (*document_get_basename_for_display) (struct GeanyDocument *doc, gint length);
312
312
        gint            (*document_get_notebook_page) (struct GeanyDocument *doc);
 
313
        gint            (*document_compare_by_display_name) (gconstpointer a, gconstpointer b);
 
314
        gint            (*document_compare_by_tab_order) (gconstpointer a, gconstpointer b);
 
315
        gint            (*document_compare_by_tab_order_reverse) (gconstpointer a, gconstpointer b);
313
316
}
314
317
DocumentFuncs;
315
318
 
436
439
                                GError **error);
437
440
        gchar**         (*utils_copy_environment)(const gchar **exclude_vars, const gchar *first_varname, ...);
438
441
        gchar*          (*utils_find_open_xml_tag) (const gchar sel[], gint size);
 
442
        const gchar*    (*utils_find_open_xml_tag_pos) (const gchar sel[], gint size);
439
443
}
440
444
UtilsFuncs;
441
445
 
473
477
        gint            (*ui_get_gtk_settings_integer) (const gchar *property_name, gint default_value);
474
478
        void            (*ui_combo_box_add_to_history) (GtkComboBoxEntry *combo_entry,
475
479
                                const gchar *text, gint history_len);
 
480
        void            (*ui_menu_add_document_items_sorted) (GtkMenu *menu, struct GeanyDocument *active,
 
481
                                GCallback callback, GCompareFunc compare_func);
476
482
}
477
483
UIUtilsFuncs;
478
484
 
561
567
        GeanyFiletype*  (*filetypes_lookup_by_name) (const gchar *name);
562
568
        GeanyFiletype*  (*filetypes_index)(gint idx);
563
569
        const gchar*    (*filetypes_get_display_name)(GeanyFiletype *ft);
 
570
        const GSList*   (*filetypes_get_sorted_by_name)(void);
564
571
        /* Remember to convert any filetype_id arguments to GeanyFiletype pointers in any
565
572
         * appended functions */
566
573
}
644
651
        struct GeanyKeyGroup* (*plugin_set_key_group)(GeanyPlugin *plugin,
645
652
                const gchar *section_name, gsize count, _GeanyKeyGroupCallback callback);
646
653
        void    (*plugin_show_configure)(GeanyPlugin *plugin);
 
654
        guint   (*plugin_timeout_add) (GeanyPlugin *plugin, guint interval, GSourceFunc function,
 
655
                gpointer data);
 
656
        guint   (*plugin_timeout_add_seconds) (GeanyPlugin *plugin, guint interval,
 
657
                GSourceFunc function, gpointer data);
 
658
        guint   (*plugin_idle_add) (GeanyPlugin *plugin, GSourceFunc function, gpointer data);
647
659
}
648
660
PluginFuncs;
649
661
 
669
681
        gint (*stash_group_save_to_file)(struct StashGroup *group, const gchar *filename,
670
682
                        GKeyFileFlags flags);
671
683
        void (*stash_group_add_toggle_button)(struct StashGroup *group, gboolean *setting,
672
 
                        const gchar *key_name, gboolean default_value, gpointer widget_id);
 
684
                        const gchar *key_name, gboolean default_value, gconstpointer widget_id);
673
685
        void (*stash_group_add_radio_buttons)(struct StashGroup *group, gint *setting,
674
686
                        const gchar *key_name, gint default_value,
675
 
                        gpointer widget_id, gint enum_id, ...) G_GNUC_NULL_TERMINATED;
 
687
                        gconstpointer widget_id, gint enum_id, ...) G_GNUC_NULL_TERMINATED;
676
688
        void (*stash_group_add_spin_button_integer)(struct StashGroup *group, gint *setting,
677
 
                        const gchar *key_name, gint default_value, gpointer widget_id);
 
689
                        const gchar *key_name, gint default_value, gconstpointer widget_id);
678
690
        void (*stash_group_add_combo_box)(struct StashGroup *group, gint *setting,
679
 
                        const gchar *key_name, gint default_value, gpointer widget_id);
 
691
                        const gchar *key_name, gint default_value, gconstpointer widget_id);
680
692
        void (*stash_group_add_combo_box_entry)(struct StashGroup *group, gchar **setting,
681
 
                        const gchar *key_name, const gchar *default_value, gpointer widget_id);
 
693
                        const gchar *key_name, const gchar *default_value, gconstpointer widget_id);
682
694
        void (*stash_group_add_entry)(struct StashGroup *group, gchar **setting,
683
 
                        const gchar *key_name, const gchar *default_value, gpointer widget_id);
 
695
                        const gchar *key_name, const gchar *default_value, gconstpointer widget_id);
684
696
        void (*stash_group_add_widget_property)(struct StashGroup *group, gpointer setting,
685
 
                        const gchar *key_name, gpointer default_value, gpointer widget_id,
 
697
                        const gchar *key_name, gpointer default_value, gconstpointer widget_id,
686
698
                        const gchar *property_name, GType type);
687
699
        void (*stash_group_display)(struct StashGroup *group, GtkWidget *owner);
688
700
        void (*stash_group_update)(struct StashGroup *group, GtkWidget *owner);