/usr/share/vala-0.14/vapi/gedit.vapi is in valac-0.14 0.14.2-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | /* gedit.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Gedit", gir_namespace = "Gedit", gir_version = "3.0", lower_case_cprefix = "gedit_")]
namespace Gedit {
[CCode (cheader_filename = "gedit/gedit-app.h", type_id = "gedit_app_get_type ()")]
public abstract class App : GLib.Object {
[CCode (has_construct_function = false)]
protected App ();
public unowned Gedit.Window create_window (Gdk.Screen? screen);
public unowned Gedit.Window get_active_window ();
public static unowned Gedit.App get_default ();
public GLib.List<weak Gedit.Document> get_documents ();
public Gedit.LockdownMask get_lockdown ();
public GLib.List<weak Gedit.View> get_views ();
public unowned GLib.List<Gedit.Window> get_windows ();
[NoWrapper]
public virtual string help_link_id (string name, string link_id);
[NoWrapper]
public virtual bool last_window_destroyed ();
public virtual void set_window_title (Gedit.Window window, string title);
public virtual bool show_help (Gtk.Window parent, string name, string link_id);
public Gedit.LockdownMask lockdown { get; }
}
[CCode (cheader_filename = "gedit/gedit-document.h", type_id = "gedit_document_get_type ()")]
public class Document : Gtk.SourceBuffer {
[CCode (has_construct_function = false)]
public Document ();
[CCode (cname = "gedit_document_save")]
public void do_save (Gedit.DocumentSaveFlags flags);
public static GLib.Quark error_quark ();
public bool get_can_search_again ();
public Gedit.DocumentCompressionType get_compression_type ();
public string get_content_type ();
public bool get_deleted ();
public bool get_enable_search_highlighting ();
public unowned Gedit.Encoding get_encoding ();
public unowned Gtk.SourceLanguage get_language ();
public GLib.File get_location ();
public string get_metadata (string key);
public string get_mime_type ();
public Gedit.DocumentNewlineType get_newline_type ();
public bool get_readonly ();
public string get_search_text (uint? flags);
public string get_short_name_for_display ();
public string get_uri_for_display ();
public bool goto_line (int line);
public bool goto_line_offset (int line, int line_offset);
public bool is_local ();
public bool is_untitled ();
public bool is_untouched ();
public virtual void load (GLib.File location, Gedit.Encoding? encoding, int line_pos, int column_pos, bool create);
public bool load_cancel ();
public void load_stream (GLib.InputStream stream, Gedit.Encoding? encoding, int line_pos, int column_pos);
public int replace_all (string find, string replace, uint flags);
public void save_as (GLib.File location, Gedit.Encoding encoding, Gedit.DocumentNewlineType newline_type, Gedit.DocumentCompressionType compression_type, Gedit.DocumentSaveFlags flags);
public bool search_backward (Gtk.TextIter? start, Gtk.TextIter? end, Gtk.TextIter? match_start, Gtk.TextIter? match_end);
public bool search_forward (Gtk.TextIter? start, Gtk.TextIter? end, Gtk.TextIter? match_start, Gtk.TextIter? match_end);
public void set_content_type (string? content_type);
public void set_enable_search_highlighting (bool enable);
public void set_language (Gtk.SourceLanguage? lang);
public void set_location (GLib.File location);
public void set_search_text (string text, uint flags);
public void set_short_name_for_display (string? short_name);
public bool can_search_again { get; }
[NoAccessorMethod]
public Gedit.DocumentCompressionType compression_type { get; set construct; }
public string content_type { owned get; set; }
public bool enable_search_highlighting { get; set; }
public Gedit.Encoding encoding { get; }
public GLib.File location { owned get; set; }
public string mime_type { owned get; }
[NoAccessorMethod]
public Gedit.DocumentNewlineType newline_type { get; set construct; }
[NoAccessorMethod]
public bool read_only { get; }
[NoAccessorMethod]
public string shortname { owned get; set; }
public virtual signal void cursor_moved ();
public virtual signal void loaded (GLib.Error error);
public virtual signal void loading (uint64 size, uint64 total_size);
public virtual signal void save (GLib.File location, Gedit.Encoding encoding, Gedit.DocumentNewlineType newline_type, Gedit.DocumentCompressionType compression_type, Gedit.DocumentSaveFlags flags);
public virtual signal void saved (GLib.Error error);
public virtual signal void saving (uint64 size, uint64 total_size);
public virtual signal void search_highlight_updated (Gtk.TextIter start, Gtk.TextIter end);
}
[CCode (cheader_filename = "gedit/gedit-encodings.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gedit_encoding_get_type ()")]
[Compact]
public class Encoding {
public Gedit.Encoding copy ();
public void free ();
public unowned string get_charset ();
public static unowned Gedit.Encoding get_current ();
public static unowned Gedit.Encoding get_from_charset (string charset);
public static unowned Gedit.Encoding get_from_index (int index);
public unowned string get_name ();
public static unowned Gedit.Encoding get_utf8 ();
public string to_string ();
}
[CCode (cheader_filename = "gedit/gedit-encodings-combo-box.h", type_id = "gedit_encodings_combo_box_get_type ()")]
public class EncodingsComboBox : Gtk.ComboBox, Atk.Implementor, Gtk.Buildable, Gtk.CellEditable, Gtk.CellLayout {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EncodingsComboBox (bool save_mode);
public unowned Gedit.Encoding get_selected_encoding ();
public void set_selected_encoding (Gedit.Encoding? encoding);
[NoAccessorMethod]
public bool save_mode { get; set construct; }
}
[CCode (cheader_filename = "gedit/gedit-message.h", type_id = "gedit_message_get_type ()")]
public class Message : GLib.Object {
[CCode (has_construct_function = false)]
protected Message ();
public unowned string get_method ();
public unowned string get_object_path ();
public bool has (string propname);
public static bool is_valid_object_path (string? object_path);
public static bool type_check (GLib.Type gtype, string propname, GLib.Type value_type);
public static bool type_has (GLib.Type gtype, string propname);
public static string type_identifier (string? object_path, string? method);
[NoAccessorMethod]
public string method { owned get; set construct; }
[NoAccessorMethod]
public string object_path { owned get; set construct; }
}
[CCode (cheader_filename = "gedit/gedit-message-bus.h", type_id = "gedit_message_bus_get_type ()")]
public class MessageBus : GLib.Object {
[CCode (has_construct_function = false)]
public MessageBus ();
public void block (uint id);
public void block_by_func (string object_path, string method, Gedit.MessageCallback callback);
public uint connect (string object_path, string method, owned Gedit.MessageCallback callback);
public void disconnect (uint id);
public void disconnect_by_func (string object_path, string method, Gedit.MessageCallback callback);
public void @foreach (Gedit.MessageBusForeach func);
public static unowned Gedit.MessageBus get_default ();
public bool is_registered (string object_path, string method);
public GLib.Type lookup (string object_path, string method);
public void register (GLib.Type message_type, string object_path, string method);
public void send_message (Gedit.Message message);
public void send_message_sync (Gedit.Message message);
public void unblock (uint id);
public void unblock_by_func (string object_path, string method, Gedit.MessageCallback callback);
public void unregister (string object_path, string method);
public void unregister_all (string object_path);
public virtual signal void dispatch (Gedit.Message message);
public virtual signal void registered (string object_path, string method);
public virtual signal void unregistered (string object_path, string method);
}
[CCode (cheader_filename = "gedit/gedit-panel.h", type_id = "gedit_panel_get_type ()")]
public class Panel : Gtk.VBox, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Panel (Gtk.Orientation orientation);
public bool activate_item (Gtk.Widget item);
public bool add_item (Gtk.Widget item, string id, string display_name, Gtk.Widget? image);
public bool add_item_with_stock_icon (Gtk.Widget item, string id, string display_name, string? stock_id);
public int get_n_items ();
public Gtk.Orientation get_orientation ();
public bool item_is_active (Gtk.Widget item);
public bool remove_item (Gtk.Widget item);
public Gtk.Orientation orientation { get; construct; }
public virtual signal void close ();
public virtual signal void focus_document ();
public virtual signal void item_added (Gtk.Widget item);
public virtual signal void item_removed (Gtk.Widget item);
}
[CCode (cheader_filename = "gedit/gedit-progress-info-bar.h", type_id = "gedit_progress_info_bar_get_type ()")]
public class ProgressInfoBar : Gtk.InfoBar, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public ProgressInfoBar (string stock_id, string markup, bool has_cancel);
public void pulse ();
public void set_fraction (double fraction);
public void set_markup (string markup);
public void set_stock_image (string stock_id);
public void set_text (string text);
public bool has_cancel_button { construct; }
}
[CCode (cheader_filename = "gedit/gedit-statusbar.h", type_id = "gedit_statusbar_get_type ()")]
public class Statusbar : Gtk.Statusbar, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public Statusbar ();
public void clear_overwrite ();
public void set_cursor_position (int line, int col);
public void set_overwrite (bool overwrite);
public void set_window_state (Gedit.WindowState state, int num_of_errors);
}
[CCode (cheader_filename = "gedit/gedit-tab.h", type_id = "gedit_tab_get_type ()")]
public class Tab : Gtk.VBox, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false)]
protected Tab ();
public bool get_auto_save_enabled ();
public int get_auto_save_interval ();
public unowned Gedit.Document get_document ();
public static unowned Gedit.Tab get_from_document (Gedit.Document doc);
public Gedit.TabState get_state ();
public unowned Gedit.View get_view ();
public void set_auto_save_enabled (bool enable);
public void set_auto_save_interval (int interval);
public void set_info_bar (Gtk.Widget info_bar);
[NoAccessorMethod]
public bool autosave { get; set; }
[NoAccessorMethod]
public int autosave_interval { get; set; }
[NoAccessorMethod]
public string name { owned get; }
public Gedit.TabState state { get; }
public virtual signal void drop_uris ([CCode (array_length = false, array_null_terminated = true)] string[] uri_list);
}
[CCode (cheader_filename = "gedit/gedit-view.h", type_id = "gedit_view_get_type ()")]
public class View : Gtk.SourceView, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public View (Gedit.Document doc);
public void copy_clipboard ();
public void cut_clipboard ();
public void delete_selection ();
public void paste_clipboard ();
public void scroll_to_cursor ();
public void select_all ();
public void set_font (bool def, string font_name);
public virtual signal void drop_uris ([CCode (array_length = false, array_null_terminated = true)] string[] uri_list);
}
[CCode (cheader_filename = "gedit/gedit-window.h", type_id = "gedit_window_get_type ()")]
public class Window : Gtk.Window, Atk.Implementor, Gtk.Buildable {
[CCode (has_construct_function = false)]
protected Window ();
public void close_all_tabs ();
public void close_tab (Gedit.Tab tab);
public void close_tabs (GLib.List<Gedit.Tab> tabs);
public unowned Gedit.Tab create_tab (bool jump_to);
public unowned Gedit.Tab create_tab_from_location (GLib.File location, Gedit.Encoding? encoding, int line_pos, int column_pos, bool create, bool jump_to);
public unowned Gedit.Tab create_tab_from_stream (GLib.InputStream stream, Gedit.Encoding? encoding, int line_pos, int column_pos, bool jump_to);
public unowned Gedit.Document get_active_document ();
public unowned Gedit.Tab get_active_tab ();
public unowned Gedit.View get_active_view ();
public unowned Gedit.Panel get_bottom_panel ();
public GLib.List<weak Gedit.Document> get_documents ();
public unowned Gtk.WindowGroup get_group ();
public unowned Gedit.MessageBus get_message_bus ();
public unowned Gedit.Panel get_side_panel ();
public Gedit.WindowState get_state ();
public unowned Gtk.Widget get_statusbar ();
public unowned Gedit.Tab get_tab_from_location (GLib.File location);
public unowned Gtk.UIManager get_ui_manager ();
public GLib.List<weak Gedit.Document> get_unsaved_documents ();
public GLib.List<weak Gedit.View> get_views ();
public void set_active_tab (Gedit.Tab tab);
public Gedit.WindowState state { get; }
public virtual signal void active_tab_changed (Gedit.Tab tab);
public virtual signal void active_tab_state_changed ();
public virtual signal void tab_added (Gedit.Tab tab);
public virtual signal void tab_removed (Gedit.Tab tab);
public virtual signal void tabs_reordered ();
}
[CCode (cheader_filename = "gedit/gedit-app-activatable.h", type_cname = "GeditAppActivatableInterface", type_id = "gedit_app_activatable_get_type ()")]
public interface AppActivatable : GLib.Object {
public abstract void activate ();
public abstract void deactivate ();
[NoAccessorMethod]
public abstract Gedit.App app { owned get; construct; }
}
[CCode (cheader_filename = "gedit/gedit-view-activatable.h", type_cname = "GeditViewActivatableInterface", type_id = "gedit_view_activatable_get_type ()")]
public interface ViewActivatable : GLib.Object {
public abstract void activate ();
public abstract void deactivate ();
[NoAccessorMethod]
public abstract Gedit.View view { owned get; construct; }
}
[CCode (cheader_filename = "gedit/gedit-window-activatable.h", type_cname = "GeditWindowActivatableInterface", type_id = "gedit_window_activatable_get_type ()")]
public interface WindowActivatable : GLib.Object {
public abstract void activate ();
public abstract void deactivate ();
public abstract void update_state ();
[NoAccessorMethod]
public abstract Gedit.Window window { owned get; construct; }
}
[CCode (cheader_filename = "gedit/gedit-debug.h", cprefix = "GEDIT_")]
[Flags]
public enum DebugSection {
NO_DEBUG,
DEBUG_VIEW,
DEBUG_SEARCH,
DEBUG_PRINT,
DEBUG_PREFS,
DEBUG_PLUGINS,
DEBUG_TAB,
DEBUG_DOCUMENT,
DEBUG_COMMANDS,
DEBUG_APP,
DEBUG_SESSION,
DEBUG_UTILS,
DEBUG_METADATA,
DEBUG_WINDOW,
DEBUG_LOADER,
DEBUG_SAVER,
DEBUG_PANEL,
DEBUG_DBUS
}
[CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_DOCUMENT_COMPRESSION_TYPE_")]
public enum DocumentCompressionType {
NONE,
GZIP
}
[CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_DOCUMENT_NEWLINE_TYPE_")]
public enum DocumentNewlineType {
LF,
CR,
CR_LF
}
[CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_DOCUMENT_SAVE_")]
[Flags]
public enum DocumentSaveFlags {
IGNORE_MTIME,
IGNORE_BACKUP,
PRESERVE_BACKUP,
IGNORE_INVALID_CHARS
}
[CCode (cheader_filename = "gedit/gedit-app.h", cprefix = "GEDIT_LOCKDOWN_")]
[Flags]
public enum LockdownMask {
COMMAND_LINE,
PRINTING,
PRINT_SETUP,
SAVE_TO_DISK
}
[CCode (cheader_filename = "gedit/gedit-document.h", cprefix = "GEDIT_SEARCH_")]
[Flags]
public enum SearchFlags {
DONT_SET_FLAGS,
ENTIRE_WORD,
CASE_SENSITIVE
}
[CCode (cheader_filename = "gedit/gedit-tab.h", cprefix = "GEDIT_TAB_")]
public enum TabState {
STATE_NORMAL,
STATE_LOADING,
STATE_REVERTING,
STATE_SAVING,
STATE_PRINTING,
STATE_PRINT_PREVIEWING,
STATE_SHOWING_PRINT_PREVIEW,
STATE_GENERIC_NOT_EDITABLE,
STATE_LOADING_ERROR,
STATE_REVERTING_ERROR,
STATE_SAVING_ERROR,
STATE_GENERIC_ERROR,
STATE_CLOSING,
STATE_EXTERNALLY_MODIFIED_NOTIFICATION,
NUM_OF_STATES
}
[CCode (cheader_filename = "gedit/gedit-window.h", cprefix = "GEDIT_WINDOW_STATE_")]
[Flags]
public enum WindowState {
NORMAL,
SAVING,
PRINTING,
LOADING,
ERROR,
SAVING_SESSION
}
[CCode (cheader_filename = "gedit/gedit-message-bus.h", instance_pos = 2.9)]
public delegate void MessageBusForeach (string object_path, string method);
[CCode (cheader_filename = "gedit/gedit-message-bus.h", instance_pos = 2.9)]
public delegate void MessageCallback (Gedit.MessageBus bus, Gedit.Message message);
[CCode (cheader_filename = "gedit/gedit-app.h")]
public const int LOCKDOWN_ALL;
[CCode (cheader_filename = "gedit/gedit-document.h")]
public const string METADATA_ATTRIBUTE_ENCODING;
[CCode (cheader_filename = "gedit/gedit-document.h")]
public const string METADATA_ATTRIBUTE_LANGUAGE;
[CCode (cheader_filename = "gedit/gedit-document.h")]
public const string METADATA_ATTRIBUTE_POSITION;
[CCode (cheader_filename = "gedit/gedit-commands.h")]
public static void commands_load_location (Gedit.Window window, GLib.File location, Gedit.Encoding? encoding, int line_pos, int column_pos);
[CCode (cheader_filename = "gedit/gedit-commands.h")]
public static GLib.SList<weak Gedit.Document> commands_load_locations (Gedit.Window window, GLib.SList<GLib.File> locations, Gedit.Encoding? encoding, int line_pos, int column_pos);
[CCode (cheader_filename = "gedit/gedit-commands.h")]
public static void commands_save_all_documents (Gedit.Window window);
[CCode (cheader_filename = "gedit/gedit-commands.h")]
public static void commands_save_document (Gedit.Window window, Gedit.Document document);
[CCode (cheader_filename = "gedit/gedit-debug.h")]
public static void debug (Gedit.DebugSection section, string file, int line, string function);
[CCode (cheader_filename = "gedit/gedit-debug.h")]
public static void debug_init ();
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_basename_for_display (GLib.File location);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static bool utils_can_read_from_stdin ();
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static bool utils_decode_uri (string uri, out string scheme, out string user, out string port, out string host, out string path);
[CCode (array_length = false, array_null_terminated = true, cheader_filename = "gedit/gedit-utils.h")]
public static string[] utils_drop_get_uris (Gtk.SelectionData selection_data);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_escape_search_text (string text);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_escape_underscores (string text, ssize_t length);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static Gedit.DocumentCompressionType utils_get_compression_type_from_content_type (string content_type);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static void utils_get_current_viewport (Gdk.Screen screen, out int x, out int y);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static uint utils_get_current_workspace (Gdk.Screen screen);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static uint utils_get_window_workspace (Gtk.Window gtkwindow);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static bool utils_is_valid_location (GLib.File location);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_location_get_dirname_for_display (GLib.File location);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static bool utils_location_has_file_scheme (GLib.File location);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_make_canonical_uri_from_shell_arg (string str);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_make_valid_utf8 (string name);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static void utils_menu_position_under_tree_view (Gtk.Menu menu, int x, int y, bool push_in, void* user_data);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static void utils_menu_position_under_widget (Gtk.Menu menu, int x, int y, bool push_in, void* user_data);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_replace_home_dir_with_tilde (string uri);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static void utils_set_atk_name_description (Gtk.Widget widget, string name, string description);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static void utils_set_atk_relation (Gtk.Widget obj1, Gtk.Widget obj2, Atk.RelationType rel_type);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_str_end_truncate (string string, uint truncate_length);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_str_middle_truncate (string string, uint truncate_length);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static void utils_text_iter_assign (Gtk.TextIter iter, Gtk.TextIter other);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_unescape_search_text (string text);
[CCode (cheader_filename = "gedit/gedit-utils.h")]
public static string utils_uri_get_dirname (string uri);
}
|