2010-12-21 00:53:59 -08:00
|
|
|
/**
|
|
|
|
* class:GObject
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* class:GFile: (parent GObject) (moo.python 0)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-24 03:21:24 -08:00
|
|
|
* class:GdkPixbuf: (parent GObject) (moo.python 0) (moo.private 1)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-24 03:21:24 -08:00
|
|
|
* class:GtkObject: (parent GObject) (moo.python 0) (moo.private 1)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-24 03:21:24 -08:00
|
|
|
* class:GtkAccelGroup: (parent GObject) (moo.python 0) (moo.private 1)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* class:GtkWidget: (parent GtkObject) (moo.python 0)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-24 03:21:24 -08:00
|
|
|
* class:GtkContainer: (parent GtkWidget) (moo.python 0) (moo.private 1)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* class:GtkTextView: (parent GtkContainer) (moo.python 0)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* class:GtkTextBuffer: (parent GObject) (moo.python 0)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* boxed:GtkTextIter: (moo.python 0)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
2011-01-01 17:14:23 -08:00
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* boxed:GdkRectangle: (moo.python 0)
|
2011-01-01 17:14:23 -08:00
|
|
|
**/
|
|
|
|
|
2011-01-04 02:17:56 -08:00
|
|
|
/**
|
2011-01-10 00:45:31 -08:00
|
|
|
* enum:GtkResponseType: (moo.python 0)
|
2011-01-22 14:32:33 -08:00
|
|
|
*
|
|
|
|
* @GTK_RESPONSE_NONE:
|
|
|
|
* @GTK_RESPONSE_REJECT:
|
|
|
|
* @GTK_RESPONSE_ACCEPT:
|
|
|
|
* @GTK_RESPONSE_DELETE_EVENT:
|
|
|
|
* @GTK_RESPONSE_OK:
|
|
|
|
* @GTK_RESPONSE_CANCEL:
|
|
|
|
* @GTK_RESPONSE_CLOSE:
|
|
|
|
* @GTK_RESPONSE_YES:
|
|
|
|
* @GTK_RESPONSE_NO:
|
|
|
|
* @GTK_RESPONSE_APPLY:
|
|
|
|
* @GTK_RESPONSE_HELP:
|
2011-01-04 02:17:56 -08:00
|
|
|
**/
|
|
|
|
|
2010-12-21 03:23:59 -08:00
|
|
|
|
2011-01-24 23:23:20 -08:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* GObject
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_object_connect: (moo.python 0)
|
|
|
|
*
|
|
|
|
* @gobj:
|
|
|
|
* @signal: (type const-utf8): signal name
|
|
|
|
* @callback: function to call when the signal is emitted
|
|
|
|
*
|
|
|
|
* Connect a signal handler.
|
|
|
|
*
|
|
|
|
* <example>
|
|
|
|
* <programlisting>
|
|
|
|
* <n/>editor.connect("before-save", function(editor, doc, file)<nl/>
|
|
|
|
* <n/> if #<!-- -->doc.get_text<!-- -->() % 2 ~= 0 then<nl/>
|
|
|
|
* <n/> moo.error_dialog("Won't save",<nl/>
|
|
|
|
* <n/> "Odd number of characters in a file " ..<nl/>
|
|
|
|
* <n/> "is bad for your hard drive, I am not " ..<nl/>
|
|
|
|
* <n/> "going to save this.",<nl/>
|
|
|
|
* <n/> doc.get_window<!-- -->())<nl/>
|
|
|
|
* <n/> return moo.SAVE_RESPONSE_CANCEL<nl/>
|
|
|
|
* <n/> else<nl/>
|
|
|
|
* <n/> return moo.SAVE_RESPONSE_CONTINUE<nl/>
|
|
|
|
* <n/> end<nl/>
|
|
|
|
* <n/>end)
|
|
|
|
* </programlisting>
|
|
|
|
* </example>
|
|
|
|
*
|
|
|
|
* Returns: id of connected signal handler. Use g_object_disconnect() to remove it.
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_object_connect_after: (moo.python 0)
|
|
|
|
*
|
|
|
|
* @gobj:
|
|
|
|
* @signal: (type const-utf8): signal name
|
|
|
|
* @callback: function to call when the signal is emitted
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_object_disconnect: (moo.python 0)
|
|
|
|
*
|
|
|
|
* @gobj:
|
|
|
|
* @handler_id: signal handler id returned from g_object_connect()
|
|
|
|
*
|
|
|
|
* Disconnect a signal handler.
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_object_signal_handler_block: (moo.python 0)
|
|
|
|
*
|
|
|
|
* @gobj:
|
|
|
|
* @handler_id: signal handler id returned from g_object_connect()
|
|
|
|
*
|
|
|
|
* Temporarily blocks signal handler so it will not be called when
|
|
|
|
* the signal it's connected to is emitted. Call g_object_signal_handler_unblock()
|
|
|
|
* to re-enable the signal handler.
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_object_signal_handler_unblock: (moo.python 0)
|
|
|
|
*
|
|
|
|
* @gobj:
|
|
|
|
* @handler_id: signal handler id returned from g_object_connect()
|
|
|
|
*
|
|
|
|
* Re-enables signal handler disabled by g_object_signal_handler_block().
|
|
|
|
**/
|
|
|
|
|
2010-12-21 03:23:59 -08:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* GFile
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2011-01-09 23:33:47 -08:00
|
|
|
* g_file_new_for_path: (static-method-of GFile)
|
2010-12-21 03:23:59 -08:00
|
|
|
*
|
2011-01-01 17:14:23 -08:00
|
|
|
* @path: (type const-filename)
|
|
|
|
*
|
2010-12-21 03:23:59 -08:00
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-09 23:33:47 -08:00
|
|
|
* g_file_new_for_uri: (static-method-of GFile)
|
2010-12-21 03:23:59 -08:00
|
|
|
*
|
2011-01-01 17:14:23 -08:00
|
|
|
* @uri: (type const-utf8)
|
|
|
|
*
|
2010-12-21 03:23:59 -08:00
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
2011-01-09 23:33:47 -08:00
|
|
|
* g_file_parse_name: (static-method-of GFile)
|
2010-12-21 03:23:59 -08:00
|
|
|
*
|
2011-01-01 17:14:23 -08:00
|
|
|
* @parse_name: (type const-utf8)
|
|
|
|
*
|
2010-12-21 03:23:59 -08:00
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_dup:
|
|
|
|
*
|
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_hash:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_equal:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_basename:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type filename)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_path:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type filename)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_uri:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type utf8)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_parse_name:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type utf8)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_parent:
|
|
|
|
*
|
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_has_parent:
|
2011-01-02 01:41:49 -08:00
|
|
|
*
|
|
|
|
* @file:
|
|
|
|
* @parent: (allow-none) (default NULL)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_child:
|
|
|
|
*
|
2011-01-01 17:14:23 -08:00
|
|
|
* @file:
|
|
|
|
* @name: (type const-filename)
|
|
|
|
*
|
2010-12-21 03:23:59 -08:00
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_child_for_display_name:
|
|
|
|
*
|
2011-01-01 17:14:23 -08:00
|
|
|
* @file:
|
|
|
|
* @display_name: (type const-utf8)
|
|
|
|
* @error:
|
|
|
|
*
|
2010-12-21 03:23:59 -08:00
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_resolve_relative_path:
|
|
|
|
*
|
2011-01-01 17:14:23 -08:00
|
|
|
* @file:
|
|
|
|
* @relative_path: (type const-filename)
|
|
|
|
*
|
2010-12-21 03:23:59 -08:00
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_has_prefix:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_relative_path:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type filename)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_is_native:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_has_uri_scheme:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* @file:
|
|
|
|
* @uri_scheme: (type const-utf8)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* g_file_get_uri_scheme:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type utf8)
|
2010-12-21 03:23:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* GtkTextIter
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-12-21 00:53:59 -08:00
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_buffer:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_copy:
|
|
|
|
*
|
|
|
|
* Returns: (transfer full)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_offset:
|
|
|
|
*
|
|
|
|
* Returns: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_line:
|
|
|
|
*
|
|
|
|
* Returns: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_line_offset:
|
|
|
|
*
|
|
|
|
* Returns: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_line_index:
|
|
|
|
*
|
|
|
|
* Returns: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_char:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_text:
|
2011-01-01 17:14:23 -08:00
|
|
|
*
|
|
|
|
* Returns: (type utf8)
|
2010-12-21 00:53:59 -08:00
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_starts_line:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_ends_line:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_is_cursor_position:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_chars_in_line:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_get_bytes_in_line:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_is_end:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_is_start:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_char:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_backward_char:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_chars:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_backward_chars:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_line:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_backward_line:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_lines:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_backward_lines:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_cursor_position:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_backward_cursor_position:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_cursor_positions:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_backward_cursor_positions:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_set_offset:
|
|
|
|
*
|
|
|
|
* @iter:
|
|
|
|
* @char_offset: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_set_line:
|
|
|
|
*
|
|
|
|
* @iter:
|
|
|
|
* @line_number: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_set_line_offset:
|
|
|
|
*
|
|
|
|
* @iter:
|
|
|
|
* @char_on_line: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_set_line_index:
|
|
|
|
*
|
|
|
|
* @iter:
|
|
|
|
* @byte_on_line: (type index)
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_to_end:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_forward_to_line_end:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_equal:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_compare:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_in_range:
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gtk_text_iter_order:
|
|
|
|
**/
|