summaryrefslogtreecommitdiff
path: root/pango.override
Commit message (Collapse)AuthorAgeFilesLines
* Allow pango.Context creationPaul Pogonyshev2009-06-181-9/+0
| | | | | Wrap and document pango.Context constructor, set_font_map() and pango.FontMap.create_context() methods. Bug #550855.
* Update the address of the FSF by replacing old bits with new ones. FixesTobias Mueller2009-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-30 Tobias Mueller <tobiasmue@gnome.org> Update the address of the FSF by replacing old bits with new ones. Fixes bug 577154. * pango.override: * atkrectangle.override: * ltihooks.py: * gtk/libglade.override: * gtk/gdkcolor.override: * gtk/gdk.override: * gtk/deprecation.py: * gtk/__init__.py: * gtk/_lazyutils.py: * gtk/gdkdraw.override: * gtk/gtk.override: * gtk/gtkcontainer.override: * gtk/gtkwidget.override: * gtk/gtkobject-support.c: * gtk/gtkiconview.override: * gtk/gtk-types.c: * gtk/gtkbuilder.override: * gtk/gdkwindow.override: * gtk/gtktreeview.override: * gtk/pygtktreemodel.c: * gtk/gtkunixprint.override: * gtk/gtkstyle.override: * gtk/gdkevent.override: * gtk/pygtktreemodel.h: * gtk/gtkctree.override: * gtk/libglademodule.c: * gtk/gtkwindow.override: * gtk/keysyms.py: * gtk/gdkgc.override: * gtk/gtkunixprintmodule.c: * gtk/gdkpixbuf.override: * gtk/gdkcairo.override: * gtk/gtkclist.override: * gtk/gtktextview.override: * gtk/pygtkcellrenderer.c: * gtk/gdkrectangle.override: * gtk/compat.py: * gtk/pygtkcellrenderer.h: * gtk/gtkmodule.c: * pangomodule.c: * atk.override: * COPYING: * pangocairomodule.c: * atkmodule.c: svn path=/trunk/; revision=3120
* Bug 472908 – Make pango.Context non-instantiableGustavo J. A. M. Carneiro2007-09-021-1/+8
| | | | svn path=/trunk/; revision=2901
* Fix bug in hash() implementation and test it properlyJohan Dahlin2007-08-291-2/+2
| | | | svn path=/trunk/; revision=2898
* Make the bindings a bit more pythonic, implement tp_str, tp_hash andJohan Dahlin2007-08-291-0/+46
| | | | | | | | | | | | 2007-08-29 Johan Dahlin <jdahlin@async.com.br> * pango.override: Make the bindings a bit more pythonic, implement tp_str, tp_hash and tp_compare for a few objects. * tests/test_pango.py: Add tests. svn path=/trunk/; revision=2897
* Bug 337368 – Make PyGTK work with Python 2.5 and 64-bitGustavo J. A. M. Carneiro2006-10-031-7/+7
|
* ignore-glob (pango_default_break): ignoreJohn Finlay2006-07-241-12/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pango.override (*_get_type, *_ref, *_unref, *_free): ignore-glob (pango_default_break): ignore * pango.defs (pango_attr_shape_new_with_data, pango_default_break) (pango_context_get_font_map, pango_context_set_matrix) (pango_context_get_matrix, pango_itemize_with_base_dir) (pango_coverage_new, pango_glyph_item_split, pango_glyph_item_free) (pango_glyph_item_apply_attrs, pango_glyph_item_letter_space) (pango_item_get_type, pango_item_new, pango_item_copy) (pango_item_free, pango_item_split, pango_script_for_unichar) (pango_script_iter_new, pango_script_iter_get_range) (pango_script_iter_next, pango_script_iter_free) (pango_script_get_sample_language, pango_script_includes_script) (pango_matrix_get_type, pango_matrix_copy, pango_matrix_free) (pango_matrix_translate, pango_matrix_scale, pango_matrix_rotate) (pango_matrix_concat, pango_get_mirror_char, pango_unichar_direction) (pango_find_base_dir): Add. Add virtuals. (pango_font_metrics_new, pango_find_map, pango_map_get_engine) (pango_map_get_engines, pango_module_register): Add with ifdef PANGO_ENABLE_BACKEND (pango_split_file_list, pango_trim_string, pango_read_line) (pango_skip_space, pango_scan_word, pango_scan_string) (pango_scan_int, pango_config_key_get, pango_lookup_aliases) (pango_parse_style, pango_parse_variant, pango_parse_weight) (pango_parse_stretch, pango_get_sysconf_subdirectory) (pango_get_lib_subdirectory, pango_log2vis_get_embedding_levels) (pango_get_sample_string, pango_is_zero_width): Add with ifdef USE_PANGO_UTILS * pango-types.defs (WrapMode): Add PANGO_WRAP_WORD_CHAR. Reorganize.
* Add.John Finlay2006-07-061-0/+80
| | | | | | | | | | | | | * pango.override (_wrap_pango_attr_underline_color_new) (_wrap_pango_attr_strikethrough_color_new) (_wrap_pango_attr_size_new_absolute) (_wrap_pango_attr_letter_spacing_new): Add. * pango.defs (AttrSizeAbsolute, AttrUnderlineColor) (AttrStrikethroughColor, AttrLetterSpacing) (pango_font_description_set_absolute_size) (pango_font_description_get_size_is_absolute) (pango_font_get_font_map): Add.
* Fix two leaks found by coverity.Johan Dahlin2006-06-041-0/+2
| | | | | * pango.override (_wrap_pango_tab_array_get_tabs): Fix two leaks found by coverity.
* Bug 316581 – pango.LayoutLine.index_to_x() keyword is wrongGustavo J. A. M. Carneiro2006-04-021-1/+1
|
* Set default markup accel marker to \x00, add tests, Fixes #329658 (JohanJohan Dahlin2006-04-021-7/+11
| | | | | | | | | * pango.override: * tests/Makefile.am: * tests/test_pango.py: Set default markup accel marker to \x00, add tests, Fixes #329658 (Johan Svedberg)
* wrap more pango stuffGustavo J. A. M. Carneiro2005-06-061-2/+43
|
* fix PangoLayoutLine boxed copy func.Gustavo J. A. M. Carneiro2005-05-301-1/+9
|
* some more pango apisGustavo J. A. M. Carneiro2005-05-291-0/+86
|
* Add.John Finlay2004-12-041-0/+84
| | | | | | | | | | | | | * pango-types.defs (LayoutIter): Add. * pango.defs (pango_layout_iter_get_type): Add. * pango.override (_wrap_pango_layout_iter_get_line_yrange) (_wrap_pango_layout_iter_get_layout_extents) (_wrap_pango_layout_iter_get_run_extents) (_wrap_pango_layout_iter_get_line_extents) (_wrap_pango_layout_iter_get_cluster_extents) (_wrap_pango_layout_iter_get_char_extents): Implement.
* make threading runtime optionalGustavo J. A. M. Carneiro2004-08-041-4/+4
|
* Add better support for boolean type now when we can require 2.3. Fixes bugJohan Dahlin2004-08-031-12/+3
| | | | | | | | | | | | | | | | | * codegen/argtypes.py: * gobject/gobjectmodule.c: (pyg_source_remove): * gobject/pygmaincontext.c: (_wrap_g_main_context_iteration), (_wrap_g_main_context_pending): * gobject/pygmainloop.c: (_wrap_g_main_loop_is_running): * gobject/pygobject.c: (pygobject_handler_is_connected): * gobject/pygparamspec.c: (pyg_param_spec_getattr): * gobject/pygtype.c: (pyg_value_as_pyobject): * gtk/gdk.override: * gtk/gtk.override: * gtk/gtktextview.override: * gtk/gtkwidget.override: * pango.override: Add better support for boolean type now when we can require 2.3. Fixes bug 149121
* Clean up most functions here to have only one return path.Johan Dahlin2004-08-031-4/+0
| | | | | | | | | | | | | | | | | | * gtk/pygtktreemodel.c: Clean up most functions here to have only one return path. * gobject/pygobject.c (pygobject_emit): Protect g_value_unset by UNBLOCK/BLOCK_THREADS since it might call pygobject_free which will result in a deadlock. * gobject/gobjectmodule.c (pyg_thread_init): New function, move thread initalization stuff in here. * All over the place: Kill pyg_block/unblock_threads and use PyGILState and Py_BEGIN/END_ALLOW_THREADS. unblock [code] block calls are replaced by Py_BEGIN/END and block [code] unblock calls are replaced by PyGILState.
* Call PyEval_InitThreads. Perhaps its something that always should beJohan Dahlin2004-08-021-3/+7
| | | | | | | | | | | | | | | | * gobject/gobjectmodule.c (initgobject): Call PyEval_InitThreads. Perhaps its something that always should be called. * README (Author): Add a requirements section * configure.in: Require Python 2.3 * setup.py (version): Ditto * gobject/pygtype.c, gobject/pygobject.h: Remove 2.2 compat. * All over the place: Add support for PyGILState.
* gtk/gtktreeview.override (_wrap_gtk_tree_view_get_cursor)John Finlay2004-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | * gtk/gtktreeview.override (_wrap_gtk_tree_view_get_cursor) (_wrap_gtk_tree_sortable_get_sort_column_id) (_wrap_gtk_tree_view_get_drag_dest_row) (_wrap_gtk_tree_view_get_dest_row_at_pos) Fix reference leaks. * gtk/gtk.override (_wrap_gtk_box_query_child_packing) (_wrap_gtk_notebook_query_tab_label_packing) (_wrap_gtk_tooltips__get_active_tips_data) (_wrap_gtk_tooltips__get_tips_data_list) (_wrap_gtk_image_get_pixmap) (_wrap_gtk_image_get_image) (_wrap_gtk_image_get_stock) (_wrap_gtk_image_get_icon_set) (_wrap_gtk_scrolled_window_get_policy) (_wrap_gtk_tooltips_data_get) (_wrap_gtk_accel_map_lookup_entry) Fix reference leaks. * pango.override (pypango_attr_iterator_get_font) Fix reference leaks.
* pango.defs (pango_language_from_string) Rework as a constructor forJohn Finlay2004-04-251-0/+56
| | | | | | | | | | | * pango.defs (pango_language_from_string) Rework as a constructor for pango.Language. (pango_language_matches) Rework this as a method for pango.Language. (pango_language_to_string) Add this as a method. * pango.override (_wrap_pango_language_from_string1) (_wrap_pango_language_matches1) Add these to support deprecated pango_language functions.
* pango.defs (pango_fontset_foreach) Add definition.John Finlay2004-04-251-0/+65
| | | | | | * pango.defs (pango_fontset_foreach) Add definition. * pango.override (_wrap_pango_fontset_foreach) Add.
* pango.defs (pango_font_family_is_monospace) Add definition.John Finlay2004-04-251-0/+2
| | | | | | | * pango.defs (pango_font_family_is_monospace) Add definition. * pango.override (_wrap_pango_font_family_is_monospace) Add two defines to avoid compilation warnings for this function.
* pango.defs (pango_font_face_list_sizes) Add definition.John Finlay2004-04-241-1/+24
| | | | | | * pango.defs (pango_font_face_list_sizes) Add definition. * pango.override (_wrap_pango_font_face_list_sizes) Add.
* pango.override (_wrap_pango_attr_list_filter) Add.John Finlay2004-04-241-2/+77
| | | | | * pango.override (_wrap_pango_attr_list_filter) Add. (pypango_attr_iterator_get_attrs) Fix memory leak.
* pango.defs (pango_attr_iterator_get_attrs) Add definition.John Finlay2004-04-241-0/+22
| | | | | | * pango.defs (pango_attr_iterator_get_attrs) Add definition. * pango.override (pypango_attr_iterator_get_attrs) Add method.
* pango.defs (pango_attr_fallback_new) Add definition for AttrFallback.John Finlay2004-04-241-0/+17
| | | | | | | | * pango.defs (pango_attr_fallback_new) Add definition for AttrFallback. * pango.override (_wrap_pango_attr_fallback_new) Add. (pypango_attr_tp_getattr) Add get attribute processing for AttrFallback.
* pango.override (_wrap_PANGO_ASCENT, _wrap_PANGO_DESCENT)John Finlay2003-07-121-0/+84
| | | | | | | | | | | * pango.override (_wrap_PANGO_ASCENT, _wrap_PANGO_DESCENT) (_wrap_PANGO_LBEARING, _wrap_PANGO_RBEARING) Add these function overrides. Fixes #116920. * pango.defs (PIXELS, ASCENT, DESCENT, LBEARING, RBEARING) Add defs for these. Fixes #116920. * pangomodule.c (initpango) Add pango.SCALE constant. Fixes #116920.
* pango.override (PangoAttrIterator) Add this type and its methods.John Finlay2003-07-121-0/+195
| | | | * pango.override (PangoAttrIterator) Add this type and its methods.
* pango.override (pypango_attr_new) Add start and end args to specifyJohn Finlay2003-07-121-65/+115
| | | | | | | | * pango.override (pypango_attr_new) Add start and end args to specify start_index and end_index values. (pypango_attr_copy) Specify copying start_index and end_index. (_wrap_pango_attr_*_new) Allow the pango.Attr* functions to optionally specify start_index and end_index values. Fixes #116776.
* pango.override (pypango_attr_tp_getattr) (pypango_attr_get_type) Add theseJohn Finlay2003-07-121-1/+91
| | | | | | * pango.override (pypango_attr_tp_getattr) (pypango_attr_get_type) Add these to provide pango.Attribute type information and access to attribute type specific data. Fixes #116691.
* pango.defs (pango_color_parse) Make this a constructor for pango.Color.John Finlay2003-07-121-0/+27
| | | | | | | | * pango.defs (pango_color_parse) Make this a constructor for pango.Color. Fixes #116662. * pango.override (_wrap_pango_color_parse) Add constructor wrapper. Fixes #116662.
* add copyright notices, and update to LGPL 2.1.James Henstridge2003-06-261-1/+21
| | | | | | 2003-06-26 James Henstridge <james@daa.com.au> * (lots of stuff): add copyright notices, and update to LGPL 2.1.
* Null is okay here. Fixes #106295 (John Finlay).Johan Dahlin2003-02-271-0/+16
| | | | | | | | | | | | | | | | * gtk/gdk.defs (invalidate_rect): Null is okay here. Fixes #106295 (John Finlay). * gtk/gdk.override (_wrap_gdk_pixbuf_new_from_xpm_data): Impl. Fixes #106292 (John Finlay) * pango.override (_wrap_pango_layout_set_text): Impl. Fixes #106280 (John Finlay) * gtk/gtk.override: Added get implements for all TextAttribute fields. Fixes #106279 (John Finlay). * gtk/gtk-types.defs (TextAttributes): Added fields.
* fix up calls to pyg_enum_get_value() so that it doesn't throw an exceptionJames Henstridge2002-11-161-8/+8
| | | | | | | | | 2002-11-16 James Henstridge <james@daa.com.au> * pango.override: fix up calls to pyg_enum_get_value() so that it doesn't throw an exception when it shouldn't. (_wrap_pango_layout_get_pixel_extents): call get_pixel_extents() like it is supposed to. Fixes bug #93569.
* mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>:James Henstridge2002-08-241-2/+4
| | | | | | | | | | | | | | | | | | | | | | 2002-08-24 James Henstridge <james@daa.com.au> mingw32 patches from Cedric Gustin <cgustin@ibelgique.com>: * gtk/gtk.override: ignore more socket/plug functions on win32. * gtk/gdk.override: gdk_pixmap_lookup is not implemented on win32. * gtk/Makefile.am (common_ldflags): and here. * pango.override (PyPangoAttribute_Type): initialise tp_alloc and tp_new in the init() function, rather than in the structure definition itself. * Makefile.am (common_ldflags): pass -no-undefined if we are on windows. * configure.in: turn on win32 DLL support, and add OS_WIN32 and PLATFORM_WIN32 conditionals for use in makefiles.
* add a PangoAttribute wrapper type, constructors for various attributes,James Henstridge2002-04-151-0/+444
| | | | | | | | 2002-04-15 James Henstridge <james@daa.com.au> * pango.override: add a PangoAttribute wrapper type, constructors for various attributes, and methods for inserting attributes in a PangoAttrList.
* remove deprecation messages for many GtkList and GtkListItem methods, asJames Henstridge2002-04-101-0/+78
| | | | | | | | | | | | | | | | | | | 2002-04-10 James Henstridge <james@daa.com.au> * gtk/gtk.defs: remove deprecation messages for many GtkList and GtkListItem methods, as they are still required for the non deprecated GtkCombo. GtkList's constructor is still marked deprecated. * gtk/gtk.override (_wrap_gtk_text_iter_get_char): don't raise an exception for unicode chars > 0xffff if we have 32 bit unicode chars in python. 2002-04-08 James Henstridge <james@daa.com.au> * pango.override (_wrap_pango_glyph_string_get_logical_widths): add wrapper. (_wrap_pango_parse_markup): add wrapper.
* remove indic functions -- they are part of the semi-public engine API.James Henstridge2002-03-181-28/+180
| | | | | | | | | | | 2002-03-18 James Henstridge <james@daa.com.au> * pango.defs: remove indic functions -- they are part of the semi-public engine API. Remove pango-module functions -- backend API. (_wrap_pango_glyph_string_extents): implement. (_wrap_pango_glyph_string_extents_range): implement.
* implement. (_wrap_pango_font_get_glyph_extents): implement.James Henstridge2002-03-171-1/+228
| | | | | | | | | | | | | | | 2002-03-17 James Henstridge <james@daa.com.au> * pango.override (_wrap_pango_context_list_families): implement. (_wrap_pango_font_get_glyph_extents): implement. (_wrap_pango_font_family_list_faces): implement. (_wrap_pango_font_map_list_families): implement. (_wrap_pango_tab_array_get_tab): implement. (_wrap_pango_tab_array_get_tabs): implement. (_wrap_pango_layout_set_markup): implement. (_wrap_pango_layout_set_markup_with_accel): implement. (_wrap_pango_layout_index_to_pos): implement. (_wrap_pango_layout_get_cursor_pos): implement.
* fix up property listing.James Henstridge2002-03-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * pygtype.c (add_property_docs): fix up property listing. * gtk/libglade.override: add modulename directive. * gtk/gdk.override: add modulename directive. * gtk/gtk.override: add modulename directive. * atk.override: add modulename directive. * pango.override: add modulename directive. * codegen/codegen.py (write_class): if override.modulename is set, put it into the classname. (write_interface): same here. (write_boxed): same here. (write_pointer): same here. * codegen/override.py (Overrides.__parse_override): add support for a "modulename" directive for overrides files.
* override the compare slot to use pango_font_description_equal.James Henstridge2002-03-161-0/+21
| | | | | | | | 2002-03-16 James Henstridge <james@daa.com.au> * pango.override (_wrap_pango_font_description_tp_compare): override the compare slot to use pango_font_description_equal. (_wrap_pango_font_description_tp_hash): and the hash function.
* register pointer types as well.James Henstridge2002-02-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-05 James Henstridge <james@daa.com.au> * codegen/codegen.py (register_types): register pointer types as well. * codegen/argtypes.py (PointerArg): handling for pointer arg types. (ArgMatcher.register_pointer): add function to register pointer types. * gtk/gtk.override (_wrap_gtk_ctree__get_selection): GtkCTreeNode is not a boxed type. (_wrap_gtk_ctree_base_nodes): same. (_wrap_gtk_ctree_insert_node): same. (_wrap_gtk_ctree_find_by_row_data): same. (_wrap_gtk_ctree_find_all_by_row_data): same. (_wrap_gtk_ctree_node_get_text): same. (_wrap_gtk_ctree_node_get_pixmap): same. (_wrap_gtk_ctree_node_get_pixtext): same. (_wrap_gtk_ctree_get_node_info): same. (_wrap_gtk_ctree_node_set_row_data): same. (_wrap_gtk_ctree_node_get_row_data): same here. (_wrap_gtk_ctree_getattr): same here. * codegen/codegen.py (write_source): register pointer types as pointers. * pango.override (_wrap_pango_font_description_new): ignore some private (well, pango module API) functions. * gtk/gtk-types.defs (CTreeNode): make this a pointer type. * codegen/codegen.py (write_pointer_method): new method to write methods for GPointer types. (write_pointer_constructor): new function for writing constructor for GPointer types. (write_pointer_getsets): new function for writing getters for pointer objects (this should be merged with the GObject and GBoxed versions ...). (write_pointer): add new function, which calls all the GPointer related functions. (write_source): write pointer types. * gobjectmodule.c (initgobject): actually ready the GPointer type. * gtk/gtk-types.defs (CTreeNode): get rid of fields here. They will be covered by the custom getattr() function, so no need to duplicate. * codegen/codegen.py (write_boxed_getsets): convert to use getsets for boxed objects. (write_boxed): use write_boxed_getsets() to write the getsets, while allowing boxed objects to specify a getattr() function. 2002-02-04 James Henstridge <james@daa.com.au> * gobjectmodule.c (initgobject): add GPointer to the module dict. (pygobject_api_functions): and to the API vtable. * pygobject.h (pyg_constant_strip_prefix): and add it to the public header. * pygobject-private.h (pyg_pointer_new): add stuff to private header ... * pygboxed.c (PyGPointer): add code to handle base GPointer type. * codegen/defsparser.py (DefsParser.__init__): add self.pointers attribute. (DefsParser.define_pointer): handle (define-pointer ...). (DefsParser.write_defs): handle pointer types. * codegen/definitions.py (PointerDef): new definition type for G_TYPE_POINTER subclasses.
* comment out, as it is only for use by engines.James Henstridge2001-10-081-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-08 James Henstridge <james@daa.com.au> * pango.defs (pango_font_metrics_new): comment out, as it is only for use by engines. * gtk/libglade.override: same here. * gtk/gdk.override: same here. * gtk/gtk.override: use import section here. * pango.override: use the new import stuff to get the reference to the GObject type. * codegen/codegen.py (write_source): write out code based on the import statements in the overrides file. Most modules have some code like this, and this helps reduce the boilerplate code that needs to be entered in. * codegen/override.py (Overrides.get_imports): add handlers for "import" sections of the overrides file, which are used to get references to the types in other modules.
* use pyg_type_from_object instead. Based on patch from Elliot.James Henstridge2001-09-281-8/+7
| | | | | | | | | | | | 2001-09-29 James Henstridge <james@daa.com.au> * gtk/pygtktreemodel.c (pygtk_tree_model_get_column_type): use pyg_type_from_object instead. Based on patch from Elliot. * gtk/gtk.override (_wrap_gtk_selection_data__get_data): convert getter to a function to match codegen changes. * : merge in python22-branch (see changelog entries below).
* update for newer Pango API.James Henstridge2001-09-191-0/+35
| | | | | | 2001-09-19 James Henstridge <james@daa.com.au> * pango.defs: update for newer Pango API.
* add is-constructor-of arguments to some defs, and add fields to someJames Henstridge2001-07-021-0/+18
| | | | | | | | | | | | | | | | | | 2001-07-03 James Henstridge <james@daa.com.au> * pango.defs: add is-constructor-of arguments to some defs, and add fields to some object and boxed defs. * pango.override: add more overrides. * pango.defs: add more boxed type defs. * gtk/gtk.defs (dequeue_resize_handler): remove removed function. * codegen/override.py (Overrides.__parse_override): fix bug here. string.find returns negative value on error -- not zero. * codegen/argtypes.py (GTypeArg.write_param): fix up arg handler.
* fix up makefile rules to build the pango module.James Henstridge2001-07-021-0/+17
| | | | | | | | | | | | 2001-07-02 James Henstridge <james@daa.com.au> * Makefile.am (pangomodule_la_SOURCES): fix up makefile rules to build the pango module. * pango.override: changes so that it builds properly. * configure.in: add line to check for pango and set PANGO_CFLAGS and PANGO_LIBS.
* add rules to build pango module.James Henstridge2001-07-011-0/+8
2001-07-02 James Henstridge <james@daa.com.au> * Makefile.am (pangomodule_la_SOURCES): add rules to build pango module. * pango.defs: * pango.override: * pangomodule.c: new files for the pango wrapper module.