json-glib-1.0: Make Object.set_member node parameter owned
[vala-lang.git] / vapi / gedit-2.20.vapi
blobda0438bde54795379ef5d1205989ac98f8ac573d
1 /* gedit-2.20.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gedit", lower_case_cprefix = "gedit_")]
4 namespace Gedit {
5         [CCode (cheader_filename = "gedit/gedit-app.h")]
6         public class App : GLib.Object {
7                 public unowned Gedit.Window create_window (Gdk.Screen screen);
8                 public unowned Gedit.Window get_active_window ();
9                 public static unowned Gedit.App get_default ();
10                 public unowned GLib.List<Gedit.Document> get_documents ();
11                 public Gedit.LockdownMask get_lockdown ();
12                 public unowned GLib.List<Gedit.View> get_views ();
13                 public unowned GLib.List<Gedit.Window> get_windows ();
14         }
15         [CCode (cheader_filename = "gedit/gedit-document.h")]
16         public class Document : Gtk.SourceBuffer {
17                 [CCode (has_construct_function = false)]
18                 public Document ();
19                 public static GLib.Quark error_quark ();
20                 public bool get_can_search_again ();
21                 public unowned string get_content_type ();
22                 public bool get_deleted ();
23                 public bool get_enable_search_highlighting ();
24                 public unowned Gedit.Encoding get_encoding ();
25                 public unowned Gtk.SourceLanguage get_language ();
26                 public unowned GLib.File get_location ();
27                 public unowned string get_metadata (string key);
28                 public unowned string get_mime_type ();
29                 public Gedit.DocumentNewlineType get_newline_type ();
30                 public bool get_readonly ();
31                 public unowned string get_search_text (uint flags);
32                 public unowned string get_short_name_for_display ();
33                 public string get_uri ();
34                 public unowned string get_uri_for_display ();
35                 public bool goto_line (int line);
36                 public bool goto_line_offset (int line, int line_offset);
37                 public bool insert_file (Gtk.TextIter iter, string uri, Gedit.Encoding encoding);
38                 public bool is_local ();
39                 public bool is_untitled ();
40                 public bool is_untouched ();
41                 public void load (string uri, Gedit.Encoding encoding, int line_pos, bool create);
42                 public bool load_cancel ();
43                 public int replace_all (string find, string replace, uint flags);
44                 public void save (Gedit.DocumentSaveFlags flags);
45                 public void save_as (string uri, Gedit.Encoding encoding, Gedit.DocumentSaveFlags flags);
46                 public bool search_backward (Gtk.TextIter start, Gtk.TextIter end, Gtk.TextIter match_start, Gtk.TextIter match_end);
47                 public bool search_forward (Gtk.TextIter start, Gtk.TextIter end, Gtk.TextIter match_start, Gtk.TextIter match_end);
48                 public void set_content_type (string content_type);
49                 public void set_enable_search_highlighting (bool enable);
50                 public void set_language (Gtk.SourceLanguage lang);
51                 public void set_metadata (...);
52                 public void set_newline_type (Gedit.DocumentNewlineType newline_type);
53                 public void set_search_text (string text, uint flags);
54                 public void set_short_name_for_display (string name);
55                 public void set_uri (string uri);
56         }
57         [CCode (cheader_filename = "gedit/gedit-encodings.h")]
58         public class Encoding : GLib.Object {
59                 public unowned Gedit.Encoding copy ();
60                 public unowned string get_charset ();
61                 public static unowned Gedit.Encoding get_current ();
62                 public static unowned Gedit.Encoding get_from_charset (string charset);
63                 public static unowned Gedit.Encoding get_from_index (int index);
64                 public unowned string get_name ();
65                 public static unowned Gedit.Encoding get_utf8 ();
66                 public unowned string to_string ();
67         }
68         [CCode (cheader_filename = "gedit-2.20.h")]
69         public class EncodingsComboBox : GLib.Object {
70                 [CCode (type = "GtkWidget*", has_construct_function = false)]
71                 public EncodingsComboBox (bool save_mode);
72                 public unowned Gedit.Encoding get_selected_encoding ();
73                 public void set_selected_encoding (Gedit.Encoding encoding);
74         }
75         [CCode (cheader_filename = "gedit-2.20.h")]
76         public class Message : GLib.Object {
77                 public void @get ();
78                 public GLib.Type get_key_type (string key);
79                 public void* get_message_type ();
80                 public unowned string get_method ();
81                 public unowned string get_object_path ();
82                 public void get_valist (void* var_args);
83                 public void get_value (string key, GLib.Value value);
84                 public bool has_key (string key);
85                 public void @set ();
86                 public void set_valist (void* var_args);
87                 public void set_value (string key, GLib.Value value);
88                 public void set_valuesv (string keys, GLib.Value[] values);
89                 public bool validate ();
90         }
91         [CCode (cheader_filename = "gedit-2.20.h")]
92         public class MessageBus : GLib.Object {
93                 [CCode (has_construct_function = false)]
94                 public MessageBus ();
95                 public void block (uint id);
96                 public void block_by_func (string object_path, string method, Gedit.MessageCallback callback, void* userdata);
97                 public uint connect (string object_path, string method, Gedit.MessageCallback callback, void* userdata, GLib.DestroyNotify destroy_data);
98                 public void disconnect (uint id);
99                 public void disconnect_by_func (string object_path, string method, Gedit.MessageCallback callback, void* userdata);
100                 public void @foreach (Gedit.MessageBusForeach func, void* userdata);
101                 public static unowned Gedit.MessageBus get_default ();
102                 public bool is_registered (string object_path, string method);
103                 public unowned Gedit.MessageType lookup (string object_path, string method);
104                 public unowned Gedit.MessageType register (string object_path, string method, uint num_optional);
105                 public void send (string object_path, string method);
106                 public void send_message (Gedit.Message message);
107                 public void send_message_sync (Gedit.Message message);
108                 public unowned Gedit.Message send_sync (string object_path, string method);
109                 public void unblock (uint id);
110                 public void unblock_by_func (string object_path, string method, Gedit.MessageCallback callback, void* userdata);
111                 public void unregister (Gedit.MessageType message_type);
112                 public void unregister_all (string object_path);
113         }
114         [CCode (ref_function = "gedit_message_type_ref", unref_function = "gedit_message_type_unref", cheader_filename = "gedit-2.20.h")]
115         public class MessageType : GLib.Object {
116                 [CCode (has_construct_function = false)]
117                 public MessageType (string object_path, string method, uint num_optional);
118                 public void @foreach (Gedit.MessageTypeForeach func);
119                 public unowned string get_method ();
120                 public unowned string get_object_path ();
121                 public static unowned string identifier (string object_path, string method);
122                 public unowned Gedit.Message instantiate ();
123                 public unowned Gedit.Message instantiate_valist (void* va_args);
124                 public static bool is_supported (GLib.Type type);
125                 public static bool is_valid_object_path (string object_path);
126                 public GLib.Type lookup (string key);
127                 public void @set (uint num_optional);
128                 public void set_valist (uint num_optional, void* va_args);
129                 [CCode (has_construct_function = false)]
130                 public MessageType.valist (string object_path, string method, uint num_optional, void* va_args);
131         }
132         [CCode (cheader_filename = "gedit/gedit-notebook.h")]
133         public class Notebook : Gtk.Notebook {
134                 [CCode (type = "GtkWidget*", has_construct_function = false)]
135                 public Notebook ();
136                 public void add_tab (Gedit.Tab tab, int position, bool jump_to);
137                 public bool get_close_buttons_sensitive ();
138                 public bool get_tab_drag_and_drop_enabled ();
139                 public void move_tab (Gedit.Notebook dest, Gedit.Tab tab, int dest_position);
140                 public void remove_all_tabs ();
141                 public void remove_tab (Gedit.Tab tab);
142                 public void reorder_tab (Gedit.Tab tab, int dest_position);
143                 public void set_always_show_tabs (bool show_tabs);
144                 public void set_close_buttons_sensitive (bool sensitive);
145                 public void set_tab_drag_and_drop_enabled (bool enable);
146         }
147         [CCode (cheader_filename = "gedit/gedit-panel.h")]
148         public class Panel : Gtk.VBox {
149                 [CCode (type = "GtkWidget*", has_construct_function = false)]
150                 public Panel (Gtk.Orientation orientation);
151                 public bool activate_item (Gtk.Widget item);
152                 public void add_item (Gtk.Widget item, string name, Gtk.Widget? image);
153                 public void add_item_with_stock_icon (Gtk.Widget item, string name, string stock_id);
154                 public int get_n_items ();
155                 public Gtk.Orientation get_orientation ();
156                 public bool item_is_active (Gtk.Widget item);
157                 public bool remove_item (Gtk.Widget item);
158         }
159         [CCode (cheader_filename = "gedit/gedit-plugin.h")]
160         public class Plugin : GLib.Object {
161                 public virtual void activate (Gedit.Window window);
162                 public virtual unowned Gtk.Widget? create_configure_dialog ();
163                 public virtual void deactivate (Gedit.Window window);
164                 public virtual unowned string get_data_dir ();
165                 public virtual unowned string get_install_dir ();
166                 public virtual bool is_configurable ();
167                 public virtual void update_ui (Gedit.Window window);
168         }
169         [CCode (cheader_filename = "gedit/gedit-progress-message-area.h")]
170         public class ProgressMessageArea : Gtk.InfoBar {
171                 [CCode (type = "GtkWidget*", has_construct_function = false)]
172                 public ProgressMessageArea (string stock_id, string markup, bool has_cancel);
173                 public void pulse ();
174                 public void set_fraction (double fraction);
175                 public void set_markup (string markup);
176                 public void set_stock_image (string stock_id);
177                 public void set_text (string text);
178         }
179         [CCode (cheader_filename = "gedit-2.20.h")]
180         public class StatusComboBox : GLib.Object {
181                 [CCode (type = "GtkWidget*", has_construct_function = false)]
182                 public StatusComboBox (string label);
183                 public void add_item (Gtk.MenuItem item, string text);
184                 public unowned Gtk.Label get_item_label ();
185                 public unowned string get_item_text (Gtk.MenuItem item);
186                 public unowned GLib.List get_items ();
187                 public unowned string get_label ();
188                 public void remove_item (Gtk.MenuItem item);
189                 public void set_item (Gtk.MenuItem item);
190                 public void set_item_text (Gtk.MenuItem item, string text);
191                 public void set_label (string label);
192         }
193         [CCode (cheader_filename = "gedit/gedit-statusbar.h")]
194         public class Statusbar : Gtk.Statusbar {
195                 [CCode (type = "GtkWidget*", has_construct_function = false)]
196                 public Statusbar ();
197                 public void clear_overwrite ();
198                 public void flash_message (uint context_id, string format);
199                 public void set_cursor_position (int line, int col);
200                 public void set_overwrite (bool overwrite);
201                 public void set_window_state (Gedit.WindowState state, int num_of_errors);
202         }
203         [CCode (cheader_filename = "gedit/gedit-tab.h")]
204         public class Tab : Gtk.VBox {
205                 public weak Gtk.VBox vbox;
206                 public bool get_auto_save_enabled ();
207                 public int get_auto_save_interval ();
208                 public unowned Gedit.Document get_document ();
209                 public static unowned Gedit.Tab get_from_document (Gedit.Document doc);
210                 public Gedit.TabState get_state ();
211                 public unowned Gedit.View get_view ();
212                 public void set_auto_save_enabled (bool enable);
213                 public void set_auto_save_interval (int interval);
214                 public void set_info_bar (Gtk.Widget info_bar);
215         }
216         [CCode (cheader_filename = "gedit/gedit-view.h")]
217         public class View : Gtk.SourceView {
218                 [CCode (type = "GtkWidget*", has_construct_function = false)]
219                 public View (Gedit.Document doc);
220                 public void copy_clipboard ();
221                 public void cut_clipboard ();
222                 public void delete_selection ();
223                 public void paste_clipboard ();
224                 public void scroll_to_cursor ();
225                 public void select_all ();
226                 public void set_font (bool def, string font_name);
227         }
228         [CCode (cheader_filename = "gedit/gedit-window.h")]
229         public class Window : Gtk.Window {
230                 public void close_all_tabs ();
231                 public void close_tab (Gedit.Tab tab);
232                 public void close_tabs (GLib.List<Gedit.Tab> tabs);
233                 public unowned Gedit.Tab create_tab (bool jump_to);
234                 public unowned Gedit.Tab create_tab_from_uri (string uri, Gedit.Encoding? encoding, int line_pos, bool create, bool jump_to);
235                 public unowned Gedit.Document get_active_document ();
236                 public unowned Gedit.Tab get_active_tab ();
237                 public unowned Gedit.View get_active_view ();
238                 public unowned Gedit.Panel get_bottom_panel ();
239                 public unowned GLib.List<Gedit.Document> get_documents ();
240                 public unowned Gtk.WindowGroup get_group ();
241                 public unowned Gedit.MessageBus get_message_bus ();
242                 public unowned Gedit.Panel get_side_panel ();
243                 public Gedit.WindowState get_state ();
244                 public unowned Gtk.Widget get_statusbar ();
245                 public unowned Gedit.Tab get_tab_from_location (GLib.File location);
246                 public unowned Gedit.Tab get_tab_from_uri (string uri);
247                 public unowned Gtk.UIManager get_ui_manager ();
248                 public unowned GLib.List<Gedit.Document> get_unsaved_documents ();
249                 public unowned GLib.List<Gedit.View> get_views ();
250                 public void set_active_tab (Gedit.Tab tab);
251         }
252         [CCode (cprefix = "GEDIT_", has_type_id = false, cheader_filename = "gedit/gedit-debug.h")]
253         public enum DebugSection {
254                 NO_DEBUG,
255                 DEBUG_VIEW,
256                 DEBUG_SEARCH,
257                 DEBUG_PRINT,
258                 DEBUG_PREFS,
259                 DEBUG_PLUGINS,
260                 DEBUG_TAB,
261                 DEBUG_DOCUMENT,
262                 DEBUG_COMMANDS,
263                 DEBUG_APP,
264                 DEBUG_SESSION,
265                 DEBUG_UTILS,
266                 DEBUG_METADATA,
267                 DEBUG_WINDOW,
268                 DEBUG_LOADER,
269                 DEBUG_SAVER
270         }
271         [CCode (cprefix = "GEDIT_DOCUMENT_NEWLINE_TYPE_", has_type_id = false, cheader_filename = "gedit-2.20.h")]
272         public enum DocumentNewlineType {
273                 LF,
274                 CR,
275                 CR_LF
276         }
277         [CCode (cprefix = "GEDIT_DOCUMENT_SAVE_", has_type_id = false, cheader_filename = "gedit/gedit-document.h")]
278         public enum DocumentSaveFlags {
279                 IGNORE_MTIME,
280                 IGNORE_BACKUP,
281                 PRESERVE_BACKUP
282         }
283         [CCode (cprefix = "GEDIT_LOCKDOWN_", has_type_id = false, cheader_filename = "gedit/gedit-app.h")]
284         public enum LockdownMask {
285                 COMMAND_LINE,
286                 PRINTING,
287                 PRINT_SETUP,
288                 SAVE_TO_DISK,
289                 ALL
290         }
291         [CCode (cprefix = "GEDIT_SEARCH_", has_type_id = false, cheader_filename = "gedit/gedit-document.h")]
292         public enum SearchFlags {
293                 DONT_SET_FLAGS,
294                 ENTIRE_WORD,
295                 CASE_SENSITIVE
296         }
297         [CCode (cprefix = "GEDIT_TAB_", has_type_id = false, cheader_filename = "gedit/gedit-tab.h")]
298         public enum TabState {
299                 STATE_NORMAL,
300                 STATE_LOADING,
301                 STATE_REVERTING,
302                 STATE_SAVING,
303                 STATE_PRINTING,
304                 STATE_PRINT_PREVIEWING,
305                 STATE_SHOWING_PRINT_PREVIEW,
306                 STATE_GENERIC_NOT_EDITABLE,
307                 STATE_LOADING_ERROR,
308                 STATE_REVERTING_ERROR,
309                 STATE_SAVING_ERROR,
310                 STATE_GENERIC_ERROR,
311                 STATE_CLOSING,
312                 STATE_EXTERNALLY_MODIFIED_NOTIFICATION,
313                 NUM_OF_STATES
314         }
315         [CCode (cprefix = "GEDIT_TOOLBAR_", has_type_id = false, cheader_filename = "gedit/gedit-prefs-manager.h")]
316         public enum ToolbarSetting {
317                 SYSTEM,
318                 ICONS,
319                 ICONS_AND_TEXT,
320                 ICONS_BOTH_HORIZ
321         }
322         [CCode (cprefix = "GEDIT_WINDOW_STATE_", has_type_id = false, cheader_filename = "gedit/gedit-window.h")]
323         public enum WindowState {
324                 NORMAL,
325                 SAVING,
326                 PRINTING,
327                 LOADING,
328                 ERROR,
329                 SAVING_SESSION
330         }
331         [CCode (cheader_filename = "gedit-2.20.h", has_target = false)]
332         public delegate void MessageBusForeach (Gedit.MessageType message_type, void* userdata);
333         [CCode (cheader_filename = "gedit-2.20.h", has_target = false)]
334         public delegate void MessageCallback (Gedit.MessageBus bus, Gedit.Message message, void* userdata);
335         [CCode (cheader_filename = "gedit-2.20.h")]
336         public delegate void MessageTypeForeach (string key, GLib.Type type, bool required);
337         [CCode (cheader_filename = "gedit-2.20.h", has_target = false)]
338         public delegate unowned GLib.MountOperation MountOperationFactory (Gedit.Document doc, void* userdata);
339         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
340         public const string BASE_KEY;
341         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
342         public const int GPM_DEFAULT_AUTO_INDENT;
343         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
344         public const int GPM_DEFAULT_AUTO_SAVE;
345         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
346         public const int GPM_DEFAULT_AUTO_SAVE_INTERVAL;
347         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
348         public const int GPM_DEFAULT_BOTTOM_PANEL_VISIBLE;
349         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
350         public const int GPM_DEFAULT_BRACKET_MATCHING;
351         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
352         public const int GPM_DEFAULT_CREATE_BACKUP_COPY;
353         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
354         public const int GPM_DEFAULT_DISPLAY_LINE_NUMBERS;
355         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
356         public const int GPM_DEFAULT_DISPLAY_RIGHT_MARGIN;
357         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
358         public const int GPM_DEFAULT_HIGHLIGHT_CURRENT_LINE;
359         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
360         public const int GPM_DEFAULT_INSERT_SPACES;
361         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
362         public const int GPM_DEFAULT_MAX_RECENTS;
363         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
364         public const int GPM_DEFAULT_PRINT_HEADER;
365         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
366         public const int GPM_DEFAULT_PRINT_LINE_NUMBERS;
367         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
368         public const int GPM_DEFAULT_PRINT_SYNTAX;
369         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
370         public const string GPM_DEFAULT_PRINT_WRAP_MODE;
371         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
372         public const int GPM_DEFAULT_RESTORE_CURSOR_POSITION;
373         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
374         public const int GPM_DEFAULT_RIGHT_MARGIN_POSITION;
375         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
376         public const int GPM_DEFAULT_SEARCH_HIGHLIGHTING_ENABLE;
377         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
378         public const int GPM_DEFAULT_SIDE_PANE_VISIBLE;
379         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
380         public const string GPM_DEFAULT_SMART_HOME_END;
381         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
382         public const string GPM_DEFAULT_SOURCE_STYLE_SCHEME;
383         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
384         public const int GPM_DEFAULT_STATUSBAR_VISIBLE;
385         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
386         public const int GPM_DEFAULT_SYNTAX_HL_ENABLE;
387         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
388         public const int GPM_DEFAULT_TABS_SIZE;
389         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
390         public const string GPM_DEFAULT_TOOLBAR_BUTTONS_STYLE;
391         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
392         public const int GPM_DEFAULT_TOOLBAR_SHOW_TOOLTIPS;
393         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
394         public const int GPM_DEFAULT_TOOLBAR_VISIBLE;
395         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
396         public const int GPM_DEFAULT_UNDO_ACTIONS_LIMIT;
397         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
398         public const int GPM_DEFAULT_USE_DEFAULT_FONT;
399         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
400         public const string GPM_DEFAULT_WRAP_MODE;
401         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
402         public const string GPM_LOCKDOWN_DIR;
403         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
404         public const string GPM_SYSTEM_FONT;
405         [CCode (cheader_filename = "gedit-2.20.h")]
406         public const string METADATA_ATTRIBUTE_ENCODING;
407         [CCode (cheader_filename = "gedit-2.20.h")]
408         public const string METADATA_ATTRIBUTE_LANGUAGE;
409         [CCode (cheader_filename = "gedit-2.20.h")]
410         public const string METADATA_ATTRIBUTE_POSITION;
411         [CCode (cheader_filename = "gedit/gedit-commands.h")]
412         public static void commands_load_uri (Gedit.Window window, string uri, Gedit.Encoding encoding, int line_pos);
413         [CCode (cheader_filename = "gedit/gedit-commands.h")]
414         public static int commands_load_uris (Gedit.Window window, GLib.SList uris, Gedit.Encoding encoding, int line_pos);
415         [CCode (cheader_filename = "gedit/gedit-commands.h")]
416         public static void commands_save_all_documents (Gedit.Window window);
417         [CCode (cheader_filename = "gedit/gedit-commands.h")]
418         public static void commands_save_document (Gedit.Window window, Gedit.Document document);
419         [CCode (cheader_filename = "gedit/gedit-debug.h")]
420         public static void debug (Gedit.DebugSection section, string file, int line, string function);
421         [CCode (cheader_filename = "gedit/gedit-debug.h")]
422         public static void debug_init ();
423         [CCode (cheader_filename = "gedit/gedit-debug.h")]
424         public static void debug_message (Gedit.DebugSection section, string file, int line, string function, string format, ...);
425         [CCode (cheader_filename = "gedit/gedit-utils.h")]
426         public static unowned Gtk.Widget dialog_add_button (Gtk.Dialog dialog, string text, string stock_id, int response_id);
427         [CCode (cname = "g_utf8_caselessnmatch", cheader_filename = "gedit/gedit-utils.h")]
428         public static bool g_utf8_caselessnmatch (string s1, string s2, ssize_t n1, ssize_t n2);
429         [CCode (cheader_filename = "gedit/gedit-utils.h")]
430         public static unowned string gdk_color_to_string (Gdk.Color color);
431         [CCode (cheader_filename = "gedit/gedit-utils.h")]
432         public static unowned Gtk.Widget gtk_button_new_with_stock_icon (string label, string stock_id);
433         [CCode (cheader_filename = "gedit/gedit-help.h")]
434         public static bool help_display (string name, string link_id);
435         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
436         public static bool prefs_manager_active_file_filter_can_set ();
437         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
438         public static bool prefs_manager_active_plugins_can_set ();
439         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
440         public static bool prefs_manager_app_init ();
441         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
442         public static void prefs_manager_app_shutdown ();
443         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
444         public static bool prefs_manager_auto_indent_can_set ();
445         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
446         public static bool prefs_manager_auto_save_can_set ();
447         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
448         public static bool prefs_manager_auto_save_interval_can_set ();
449         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
450         public static bool prefs_manager_bottom_panel_active_page_can_set ();
451         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
452         public static bool prefs_manager_bottom_panel_size_can_set ();
453         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
454         public static bool prefs_manager_bottom_panel_visible_can_set ();
455         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
456         public static bool prefs_manager_bracket_matching_can_set ();
457         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
458         public static bool prefs_manager_create_backup_copy_can_set ();
459         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
460         public static bool prefs_manager_display_line_numbers_can_set ();
461         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
462         public static bool prefs_manager_display_right_margin_can_set ();
463         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
464         public static bool prefs_manager_editor_font_can_set ();
465         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
466         public static bool prefs_manager_enable_search_highlighting_can_set ();
467         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
468         public static bool prefs_manager_enable_syntax_highlighting_can_set ();
469         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
470         public static int prefs_manager_get_active_file_filter ();
471         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
472         public static unowned GLib.SList prefs_manager_get_active_plugins ();
473         [CCode (cheader_filename = "gedit-2.20.h")]
474         public static unowned GLib.SList<Gedit.Encoding> prefs_manager_get_auto_detected_encodings ();
475         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
476         public static bool prefs_manager_get_auto_indent ();
477         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
478         public static bool prefs_manager_get_auto_save ();
479         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
480         public static int prefs_manager_get_auto_save_interval ();
481         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
482         public static int prefs_manager_get_bottom_panel_active_page ();
483         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
484         public static int prefs_manager_get_bottom_panel_size ();
485         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
486         public static bool prefs_manager_get_bottom_panel_visible ();
487         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
488         public static bool prefs_manager_get_bracket_matching ();
489         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
490         public static bool prefs_manager_get_create_backup_copy ();
491         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
492         public static int prefs_manager_get_default_bottom_panel_size ();
493         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
494         public static unowned string prefs_manager_get_default_print_font_body ();
495         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
496         public static unowned string prefs_manager_get_default_print_font_header ();
497         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
498         public static unowned string prefs_manager_get_default_print_font_numbers ();
499         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
500         public static int prefs_manager_get_default_side_panel_size ();
501         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
502         public static void prefs_manager_get_default_window_size (int width, int height);
503         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
504         public static bool prefs_manager_get_display_line_numbers ();
505         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
506         public static bool prefs_manager_get_display_right_margin ();
507         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
508         public static unowned string prefs_manager_get_editor_font ();
509         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
510         public static bool prefs_manager_get_enable_search_highlighting ();
511         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
512         public static bool prefs_manager_get_enable_syntax_highlighting ();
513         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
514         public static bool prefs_manager_get_highlight_current_line ();
515         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
516         public static bool prefs_manager_get_insert_spaces ();
517         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
518         public static Gedit.LockdownMask prefs_manager_get_lockdown ();
519         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
520         public static int prefs_manager_get_max_recents ();
521         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
522         public static unowned string prefs_manager_get_print_font_body ();
523         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
524         public static unowned string prefs_manager_get_print_font_header ();
525         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
526         public static unowned string prefs_manager_get_print_font_numbers ();
527         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
528         public static bool prefs_manager_get_print_header ();
529         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
530         public static int prefs_manager_get_print_line_numbers ();
531         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
532         public static bool prefs_manager_get_print_syntax_hl ();
533         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
534         public static Gtk.WrapMode prefs_manager_get_print_wrap_mode ();
535         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
536         public static bool prefs_manager_get_restore_cursor_position ();
537         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
538         public static int prefs_manager_get_right_margin_position ();
539         [CCode (cheader_filename = "gedit-2.20.h")]
540         public static unowned GLib.SList<Gedit.Encoding> prefs_manager_get_shown_in_menu_encodings ();
541         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
542         public static bool prefs_manager_get_side_pane_visible ();
543         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
544         public static int prefs_manager_get_side_panel_active_page ();
545         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
546         public static int prefs_manager_get_side_panel_size ();
547         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
548         public static Gtk.SourceSmartHomeEndType prefs_manager_get_smart_home_end ();
549         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
550         public static unowned string prefs_manager_get_source_style_scheme ();
551         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
552         public static bool prefs_manager_get_statusbar_visible ();
553         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
554         public static unowned string prefs_manager_get_system_font ();
555         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
556         public static int prefs_manager_get_tabs_size ();
557         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
558         public static Gedit.ToolbarSetting prefs_manager_get_toolbar_buttons_style ();
559         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
560         public static bool prefs_manager_get_toolbar_visible ();
561         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
562         public static int prefs_manager_get_undo_actions_limit ();
563         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
564         public static bool prefs_manager_get_use_default_font ();
565         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
566         public static void prefs_manager_get_window_size (int width, int height);
567         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
568         public static int prefs_manager_get_window_state ();
569         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
570         public static Gtk.WrapMode prefs_manager_get_wrap_mode ();
571         [CCode (cheader_filename = "gedit-2.20.h")]
572         public static unowned GLib.SList<string> prefs_manager_get_writable_vfs_schemes ();
573         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
574         public static bool prefs_manager_highlight_current_line_can_set ();
575         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
576         public static bool prefs_manager_init ();
577         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
578         public static bool prefs_manager_insert_spaces_can_set ();
579         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
580         public static bool prefs_manager_print_font_body_can_set ();
581         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
582         public static bool prefs_manager_print_font_header_can_set ();
583         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
584         public static bool prefs_manager_print_font_numbers_can_set ();
585         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
586         public static bool prefs_manager_print_header_can_set ();
587         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
588         public static bool prefs_manager_print_line_numbers_can_set ();
589         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
590         public static bool prefs_manager_print_syntax_hl_can_set ();
591         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
592         public static bool prefs_manager_print_wrap_mode_can_set ();
593         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
594         public static bool prefs_manager_right_margin_position_can_set ();
595         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
596         public static void prefs_manager_set_active_file_filter (int id);
597         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
598         public static void prefs_manager_set_active_plugins (GLib.SList plugins);
599         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
600         public static void prefs_manager_set_auto_indent (bool ai);
601         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
602         public static void prefs_manager_set_auto_save (bool @as);
603         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
604         public static void prefs_manager_set_auto_save_interval (int asi);
605         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
606         public static void prefs_manager_set_bottom_panel_active_page (int id);
607         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
608         public static void prefs_manager_set_bottom_panel_size (int ps);
609         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
610         public static void prefs_manager_set_bottom_panel_visible (bool tv);
611         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
612         public static void prefs_manager_set_bracket_matching (bool bm);
613         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
614         public static void prefs_manager_set_create_backup_copy (bool cbc);
615         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
616         public static void prefs_manager_set_display_line_numbers (bool dln);
617         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
618         public static void prefs_manager_set_display_right_margin (bool drm);
619         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
620         public static void prefs_manager_set_editor_font (string font);
621         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
622         public static void prefs_manager_set_enable_search_highlighting (bool esh);
623         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
624         public static void prefs_manager_set_enable_syntax_highlighting (bool esh);
625         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
626         public static void prefs_manager_set_highlight_current_line (bool hl);
627         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
628         public static void prefs_manager_set_insert_spaces (bool ai);
629         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
630         public static void prefs_manager_set_print_font_body (string font);
631         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
632         public static void prefs_manager_set_print_font_header (string font);
633         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
634         public static void prefs_manager_set_print_font_numbers (string font);
635         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
636         public static void prefs_manager_set_print_header (bool ph);
637         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
638         public static void prefs_manager_set_print_line_numbers (int pln);
639         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
640         public static void prefs_manager_set_print_syntax_hl (bool ps);
641         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
642         public static void prefs_manager_set_print_wrap_mode (Gtk.WrapMode pwm);
643         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
644         public static void prefs_manager_set_right_margin_position (int rmp);
645         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
646         public static void prefs_manager_set_shown_in_menu_encodings (GLib.SList<Gedit.Encoding> encs);
647         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
648         public static void prefs_manager_set_side_pane_visible (bool tv);
649         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
650         public static void prefs_manager_set_side_panel_active_page (int id);
651         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
652         public static void prefs_manager_set_side_panel_size (int ps);
653         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
654         public static void prefs_manager_set_smart_home_end (Gtk.SourceSmartHomeEndType smart_he);
655         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
656         public static void prefs_manager_set_source_style_scheme (string scheme);
657         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
658         public static void prefs_manager_set_statusbar_visible (bool sv);
659         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
660         public static void prefs_manager_set_tabs_size (int ts);
661         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
662         public static void prefs_manager_set_toolbar_buttons_style (Gedit.ToolbarSetting tbs);
663         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
664         public static void prefs_manager_set_toolbar_visible (bool tv);
665         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
666         public static void prefs_manager_set_undo_actions_limit (int ual);
667         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
668         public static void prefs_manager_set_use_default_font (bool udf);
669         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
670         public static void prefs_manager_set_window_size (int width, int height);
671         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
672         public static void prefs_manager_set_window_state (int ws);
673         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
674         public static void prefs_manager_set_wrap_mode (Gtk.WrapMode wp);
675         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
676         public static bool prefs_manager_shown_in_menu_encodings_can_set ();
677         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
678         public static void prefs_manager_shutdown ();
679         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
680         public static bool prefs_manager_side_pane_visible_can_set ();
681         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
682         public static bool prefs_manager_side_panel_active_page_can_set ();
683         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
684         public static bool prefs_manager_side_panel_size_can_set ();
685         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
686         public static bool prefs_manager_smart_home_end_can_set ();
687         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
688         public static bool prefs_manager_source_style_scheme_can_set ();
689         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
690         public static bool prefs_manager_statusbar_visible_can_set ();
691         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
692         public static bool prefs_manager_tabs_size_can_set ();
693         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
694         public static bool prefs_manager_toolbar_buttons_style_can_set ();
695         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
696         public static bool prefs_manager_toolbar_visible_can_set ();
697         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
698         public static bool prefs_manager_undo_actions_limit_can_set ();
699         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
700         public static bool prefs_manager_use_default_font_can_set ();
701         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
702         public static bool prefs_manager_window_size_can_set ();
703         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
704         public static bool prefs_manager_window_state_can_set ();
705         [CCode (cheader_filename = "gedit/gedit-prefs-manager.h")]
706         public static bool prefs_manager_wrap_mode_can_set ();
707         [CCode (cheader_filename = "gedit/gedit-utils.h")]
708         public static void utils_activate_url (Gtk.AboutDialog about, string url, void* data);
709         [CCode (cheader_filename = "gedit/gedit-utils.h")]
710         public static unowned string utils_basename_for_display (string uri);
711         [CCode (cheader_filename = "gedit/gedit-utils.h")]
712         public static bool utils_decode_uri (string uri, string scheme, string user, string port, string host, string path);
713         [CCode (cheader_filename = "gedit/gedit-utils.h")]
714         public static unowned string utils_drop_get_uris (Gtk.SelectionData selection_data);
715         [CCode (cheader_filename = "gedit/gedit-utils.h")]
716         public static unowned string utils_escape_search_text (string text);
717         [CCode (cheader_filename = "gedit/gedit-utils.h")]
718         public static unowned string utils_escape_underscores (string text, ssize_t length);
719         [CCode (cheader_filename = "gedit/gedit-utils.h")]
720         public static bool utils_file_has_parent (GLib.File gfile);
721         [CCode (cheader_filename = "gedit/gedit-utils.h")]
722         public static void utils_get_current_viewport (Gdk.Screen screen, int x, int y);
723         [CCode (cheader_filename = "gedit/gedit-utils.h")]
724         public static uint utils_get_current_workspace (Gdk.Screen screen);
725         [CCode (cheader_filename = "gedit/gedit-utils.h")]
726         public static bool utils_get_ui_objects (string filename, string root_objects, out unowned Gtk.Widget error_widget, string object_name);
727         [CCode (cheader_filename = "gedit/gedit-utils.h")]
728         public static uint utils_get_window_workspace (Gtk.Window gtkwindow);
729         [CCode (cheader_filename = "gedit/gedit-utils.h")]
730         public static bool utils_is_valid_uri (string uri);
731         [CCode (cheader_filename = "gedit/gedit-utils.h")]
732         public static unowned string utils_location_get_dirname_for_display (GLib.File location);
733         [CCode (cheader_filename = "gedit/gedit-utils.h")]
734         public static unowned string utils_make_canonical_uri_from_shell_arg (string str);
735         [CCode (cheader_filename = "gedit/gedit-utils.h")]
736         public static unowned string utils_make_valid_utf8 (string name);
737         [CCode (cheader_filename = "gedit/gedit-utils.h")]
738         public static void utils_menu_position_under_tree_view (Gtk.Menu menu, int x, int y, bool push_in);
739         [CCode (cheader_filename = "gedit/gedit-utils.h")]
740         public static void utils_menu_position_under_widget (Gtk.Menu menu, int x, int y, bool push_in);
741         [CCode (cheader_filename = "gedit/gedit-utils.h")]
742         public static unowned string utils_replace_home_dir_with_tilde (string uri);
743         [CCode (cheader_filename = "gedit/gedit-utils.h")]
744         public static void utils_set_atk_name_description (Gtk.Widget widget, string name, string description);
745         [CCode (cheader_filename = "gedit/gedit-utils.h")]
746         public static void utils_set_atk_relation (Gtk.Widget obj1, Gtk.Widget obj2, Atk.RelationType rel_type);
747         [CCode (cheader_filename = "gedit/gedit-utils.h")]
748         public static unowned string utils_str_end_truncate (string str, uint truncate_length);
749         [CCode (cheader_filename = "gedit/gedit-utils.h")]
750         public static unowned string utils_str_middle_truncate (string str, uint truncate_length);
751         [CCode (cheader_filename = "gedit/gedit-utils.h")]
752         public static unowned string utils_unescape_search_text (string text);
753         [CCode (cheader_filename = "gedit/gedit-utils.h")]
754         public static bool utils_uri_exists (string text_uri);
755         [CCode (cheader_filename = "gedit/gedit-utils.h")]
756         public static unowned string utils_uri_for_display (string uri);
757         [CCode (cheader_filename = "gedit/gedit-utils.h")]
758         public static unowned string utils_uri_get_dirname (string uri);
759         [CCode (cheader_filename = "gedit/gedit-utils.h")]
760         public static bool utils_uri_has_file_scheme (string uri);
761         [CCode (cheader_filename = "gedit/gedit-utils.h")]
762         public static bool utils_uri_has_writable_scheme (string uri);
763         [CCode (cheader_filename = "gedit/gedit-debug.h")]
764         public static void warning (string format, ...);