summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
2009-08-16Support AM_SILENT_RULESChristian Persch1-1/+1
And sprinkle some $(AM_V_GEN) around. Silent rules are disabled by default.
2009-05-18Bug 583129 – [python] allow passing None as command or directory optionFrédéric Péters1-2/+2
2009-05-18Bug 583078 – [python] allow passing of environment as a dictionaryFrédéric Péters1-33/+59
2009-04-17Add git.mkBehdad Esfahbod1-0/+2
2009-02-02 Bug 570208 – vte fails to build outside source treeChristian Persch1-6/+6
* python/Makefile.am: Build fix. svn path=/trunk/; revision=2369
2008-12-10Bug 562695 - ship pkg-config file for python bindingsPaolo Borelli2-1/+18
2008-12-10 Paolo Borelli <pborelli@katamail.com> Bug 562695 - ship pkg-config file for python bindings * configure.in: * python/Makefile.am: * python/pyvte.pc.in: svn path=/trunk/; revision=2336
2008-11-29Register the constants too!Christian Persch1-0/+2
* python/vtemodule.c: (initvte): Register the constants too! svn path=/trunk/; revision=2230
2008-11-22Fix missing-prototypes warnings.Christian Persch1-0/+3
* python/vte.override: Fix missing-prototypes warnings. svn path=/trunk/; revision=2179
2008-10-14Add new API to the python bindings.Christian Persch1-4/+41
svn path=/trunk/; revision=2120
2008-10-06Add new function to the python bindings.Christian Persch1-0/+10
svn path=/trunk/; revision=2109
2008-09-07Update python bindings.Christian Persch1-30/+97
* python/vte.defs: Update python bindings. svn path=/trunk/; revision=2091
2007-06-18Use AM_LDFLAGS instead of LDFLAGSBehdad Esfahbod1-1/+1
svn path=/trunk/; revision=1911
2007-02-27Bug 410986 – Fails to build with -z defsChris Wilson1-1/+5
2007-02-27 Chris Wilson <chris@chris-wilson.co.uk> Bug 410986 – Fails to build with -z defs If you link the vtemodule.so to libpython, then programs importing vte will have the symbols twice in memory: one set from python and the other from libpython. * configure.in: * python/Makefile.am: Remove PYTHON_LIBS from linking vtemodule.so. Convert unresolved symbol errors into warnings so that building with -Wl,-z,defs continues to work. This is a *hack* as it hides real errors if you are updating vte.{def,override}. svn path=/trunk/; revision=1767
2007-02-26Bug 410986 – Fails to build with -z defsChris Wilson1-1/+1
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk> Bug 410986 – Fails to build with -z defs The forgotten half - the python module also fails to link. * acinclude.m4: * python/Makefile.am: Add PYTHON_LIBS pointing to the customary location and remember to include them when compiling vtemodule.so. svn path=/trunk/; revision=1763
2007-02-01Bug 382245 – __PyGtk_API multiply defined in python moduleChris Wilson1-0/+1
2007-02-01 Chris Wilson <chris@chris-wilson.co.uk> Bug 382245 – __PyGtk_API multiply defined in python module * configure.in: Add -fno-common to MAYBE_WARN in order to catch future errors of this type. * python/vte.override: Define PYGTK_NO_IMPORT. svn path=/trunk/; revision=1600
2007-01-24Bug 400184 – _vte_pty_open declaration mismatch - breaks on SolarisChris Wilson2-4/+4
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk> Bug 400184 – _vte_pty_open declaration mismatch - breaks on Solaris actually revealed a faux-pas in the conversion of the public interfaces to GPid - that it broke the ABI. However, the intention is to remove the exposed pid_t, cf bug 400333. * python/vte.defs: * python/vte.override: * src/pty.c: (_vte_pty_open): * src/pty.h: * src/vte.c: (_vte_terminal_fork_basic), (vte_terminal_forkpty): * src/vte.h: Revert the exposed GPids back to pid_t. svn path=/trunk/; revision=1519
2007-01-22Bug 123591 – vte_terminal_fork_command succeeds even when it does notChris Wilson2-4/+4
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk> Bug 123591 – vte_terminal_fork_command succeeds even when it does not * python/vte.defs: * python/vte.override: * src/reaper.c: (vte_reaper_child_watch_cb): * src/vte-private.h: * src/vte.c: (vte_terminal_catch_child_exited), (_vte_terminal_fork_basic), (vte_terminal_forkpty): * src/vte.h: * src/vteapp.c: s/pid_t/GPid/ portable variant, no API/ABI implications * src/pty.c: (vte_pty_child_setup), (_vte_pty_run_on_pty), (_vte_pty_fork_on_pty_name), (_vte_pty_fork_on_pty_fd), (_vte_pty_open_unix98), (_vte_pty_pipe_open), (n_read), (n_write), (_vte_pty_start_helper), (_vte_pty_open_with_helper), (_vte_pty_open), (main): Replace custom fork() and pipe based syncrohonisation scheme with g_spawn_async_with_pipes() as it actually handles all failure modes correctly, and gives us overtures of portability. svn path=/trunk/; revision=1493
2007-01-18And the corresponding overrides. [The downsides of losing track of whichChris Wilson1-0/+89
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk> And the corresponding overrides. [The downsides of losing track of which machine you are working on.] * python/vte.override: Add (get_text_include_trailing_spaces) svn path=/trunk/; revision=1462
2007-01-18Add missing export of vte_terminal_get_text_include_trailing_spaces,Chris Wilson1-0/+9
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk> Add missing export of vte_terminal_get_text_include_trailing_spaces, needed for building a simple testcase for Bug 397724. vte.defs needs a bit of love... * python/vte.defs: Add (get_text_include_trailing_spaces) svn path=/trunk/; revision=1461
2007-01-09Remove .cvsignore files (moved to svn:ignore prop)Behdad Esfahbod1-3/+0
svn path=/trunk/; revision=1424
2006-07-10Bug 345377 – real transparency Patch from Kristian Høgsberg <krhBehdad Esfahbod3-2/+11
2006-07-10 Behdad Esfahbod <behdad@gnome.org> Bug 345377 – real transparency Patch from Kristian Høgsberg <krh redhat.com> * doc/reference/tmpl/vte.sgml: * doc/reference/vte-sections.txt: * python/vte.defs: * src/vte-private.h: * src/vte.c (vte_terminal_set_opacity), (vte_terminal_init), (vte_terminal_background_update): * src/vte.h: * src/vteapp.c (main): * src/vtedraw.c (_vte_draw_set_background_color): * src/vtedraw.h: * src/vteft2.c (_vte_ft2_set_background_color): * src/vtegl.c (_vte_gl_set_background_color): * src/vtepango.c (_vte_pango_set_background_color): * src/vtepangox.c (_vte_pango_x_set_background_color): * src/vteskel.c (_vte_skel_set_background_color): * src/vtexft.c (_vte_xft_create), (_vte_xft_set_background_color), (_vte_xft_clear): Add vte_terminal_set_opacity().
2006-06-12Bug 344666 – Problems with *_CFLAGS and *_LDFLAGS in makefiles PatchBehdad Esfahbod1-2/+2
2006-06-12 Behdad Esfahbod <behdad@gnome.org> Bug 344666 – Problems with *_CFLAGS and *_LDFLAGS in makefiles Patch from Stepan Kasal <kasal@ucw.cz>. * src/Makefile.am (AM_CFLAGS, AM_LDFLAGS, *_CFLAGS, *_LDADD): Replace @FOO@ references by $(FOO), remove redundant (or buggy) occurences of `@CFLAGS@'. * gnome-pty-helper/Makefile.am (AM_CFLAGS, AM_LDFLAGS): Likewise. * python/Makefile.am (vtemodule_la_CFLAGS): Likewise. * src/Makefile.am (AM_CFLAGS): Add $(FT2_CFLAGS).
2006-04-20Misc fixes and updates.Behdad Esfahbod2-9/+68
2006-04-20 Behdad Esfahbod <behdad@gnome.org> * doc/reference/tmpl/internals.sgml: * doc/reference/tmpl/reaper.sgml: * doc/reference/tmpl/vte-unused.sgml: * doc/reference/tmpl/vte.sgml: * doc/reference/tmpl/vteaccess.sgml: * doc/reference/vte-sections.txt: Misc fixes and updates. * python/vte.defs: * python/vte.override: Updates. Bug 160134 – mouse events occurring past column 95 are not passed through to terminal application Based on patch from Sean Estabrooks. * src/vte.h: * src/vte.c (vte_terminal_feed_child_binary): New public function. * src/vte.c (vte_terminal_send_mouse_button_internal), (vte_terminal_maybe_send_mouse_drag): Use feed_child_binary.
2006-04-20Bug 135230 – Feature request to attach VTE to existing pty Based onBehdad Esfahbod1-0/+10
2006-04-19 Behdad Esfahbod <behdad@gnome.org> Bug 135230 – Feature request to attach VTE to existing pty Based on patch from eric@brouhaha.com, John Swensen, and Chris Moller <cmoller@redhat.com> * src/vte.c: * src/vte.h: * python/vte.defs: * doc/reference/vte-sections.txt: Added vte_terminal_set_pty().
2006-02-14Return 0. (bug #331178)Behdad Esfahbod2-2/+2
2006-02-14 Behdad Esfahbod <behdad@gnome.org> * src/vteseq-gen.c (main): Return 0. (bug #331178)
2006-02-11Update the build infrastructure. make distcheck works now!Behdad Esfahbod1-1/+1
2006-02-10 Behdad Esfahbod <behdad@gnome.org> Update the build infrastructure. make distcheck works now! * autogen.sh: Use a generic autogen.sh that uses gnome-common. * configure.in: Simplify gtk-doc stuff. Update to newer syntax. * Makefile.am, src/Makefile.am, doc/reference/Makefile.am: Updated.
2005-12-12python-vte seems to have a small bug in the override file that preventsKjartan Maraas1-0/+2
2005-12-12 Kjartan Maraas <kmaraas@gnome.org> * python/vte.override: python-vte seems to have a small bug in the override file that prevents the forkpty() method to be generated. The attached patch fixes this problem. Patch from Michael Vogt. Closes bug #169201.
2005-11-08Update.Kjartan Maraas1-4/+15
2005-11-08 Kjartan Maraas <kmaraas@gnome.org> * NEWS: Update. * Makefile.am: * autogen.sh: * configure.in: * python/Makefile.am: I'm attaching a patch that modernizes the python binding build stuff. Notably, it excludes python/vte.c from the dist. Right now as it stands, the file is disted, which means people's builds will not work unless they build against pygtk 2.8, which makes this bug somewhat important. Patch from Manish Sing Closes bug #320931.
2005-07-26pyg_boxed_get should be on item not py_palette. Reported with fix by LoïcMichele Baldessari1-1/+1
2005-07-26 Michele Baldessari <michele@pupazzo.org> * python/vte.override (_wrap_vte_terminal_set_colors): pyg_boxed_get should be on item not py_palette. Reported with fix by Loïc Minier <lool+gnome@via.ecp.fr> Closes bug #311570
2005-03-17Remove stray underscores so python module works again. Fixes bug #150760.Manish Singh1-2/+2
2005-03-16 Manish Singh <yosh@gimp.org> * python/vtemodule.c: Remove stray underscores so python module works again. Fixes bug #150760.
2004-05-30add ignore filesThomas Vander Stichele1-0/+3
2004-04-30include get_default_emulation binding.Nalin Dahyabhai1-3/+9
* python/vte.defs: include get_default_emulation binding.
2004-04-20toggle the IUTF8 flag, if it was defined at compile-time (maybe forNalin Dahyabhai1-2/+2
* src/pty.c(_vte_pty_set_utf8): toggle the IUTF8 flag, if it was defined at compile-time (maybe for #129317). * src/vte.c(vte_terminal_set_encoding): call _vte_pty_set_utf8. * src/vte.h (vte_terminal_anti_alias_get_type): declare. * src/vtebg.c(vte_bg_get_pixmap): Optimisation to fix the ridiculous amount of time required to render solid colour or extremely small image tiled backgrounds. This fixes bug #123903. (desrt) * src/vtebg.c(vte_bg_root_pixmap): move resize code into a separate function. * src/vtebg.c(vte_bg_get_pixmap): Resize all image sources, in case we're using a very small image file for the background. * python/Makefile.am: move python module to site-packages/gtk-2.0, which is added to the search path only by pygtk 2 (#92252).
2004-04-20define a modulename override so that the Terminal class is registered inNalin Dahyabhai2-1/+8
* python/vte.override: define a modulename override so that the Terminal class is registered in the proper namespace so that python's help() builtin sees the Terminal class (#130267).
2004-04-20add, for the sake of bindings.Nalin Dahyabhai2-0/+34
* src/vte.c(vte_terminal_anti_alias_get_type): add, for the sake of bindings.
2004-04-20call GtkWidget's key_press_event callback for keys, in case GtkWidget hasNalin Dahyabhai1-2/+2
* src/vte.c(vte_terminal_key_press): call GtkWidget's key_press_event callback for keys, in case GtkWidget has pre-programmed behavior for that key (#133878). * configure.in, gnome-pty-helper/configure.in: quote names of defined functions (#133222). * configure.in: make compilation of gnome-pty-helper actually conditional (#133077). * src/vte.c(vte_terminal_process_incoming): Doh #132610, actually call vte_terminal_emit_contents_changed() when the contents change.
2003-09-15add specs for set_color_cursor and set_color_highlight.Nalin Dahyabhai1-0/+18
* python/vte.defs: add specs for set_color_cursor and set_color_highlight.
2003-08-13if we don't find the python headers (even if we found python), disableNalin Dahyabhai2-1/+79
* configure.in: if we don't find the python headers (even if we found python), disable compilation of python bindings (bug #116756). Make the checks for python support sequential for easier maintenance. * python/vte.defs: add def for vte_terminal_match_set_cursor_type. Make the color argument to vte_terminal_set_background_tint_color const. * python/vte.override(_wrap_vte_terminal_forkpty): add. * python/vte.override(_wrap_vte_terminal_fork_command): don't leak envv.
2003-08-12reorder arguments to match the order for the C versions (#118882). fixNalin Dahyabhai2-85/+104
* python/vte.override(get_text,get_text_range): reorder arguments to match the order for the C versions (#118882). * python/vte.override(get_text,get_text_range,call_callback): fix refcounting and callback argument marshalling (bug #118882). * python/vte-demo.py: exercies get_text() on "window-raise" signals.
2003-08-11add binding for get_padding() (bug #118834).Nalin Dahyabhai1-0/+15
* python/vte.override: add binding for get_padding() (bug #118834).
2003-08-11add binding for get_cursor_position() (bug #118800).Nalin Dahyabhai1-0/+16
* python/vte.override: add binding for get_cursor_position() (bug #118800).
2003-08-11give length parameters for feed() and feed_child() default values of -1Nalin Dahyabhai2-2/+22
* python/vte.defs: give length parameters for feed() and feed_child() default values of -1 (bug #118711). * python/vte.override: use the length parameter if it's supplied to the feed() and feed_child() methods.
2003-08-11add overrides for feed() and feed_child() methods which use the length ofNalin Dahyabhai1-0/+38
* python/vte.override: add overrides for feed() and feed_child() methods which use the length of the string as given in C, to hopefully allow passing NUL bytes around as part of strings (bug #118711). Make the length parameter optional, and ignored, to try to avoid breaking existing Python code in an obvious way.
2003-03-06regenerate. update for vte_char_attributes rename.Nalin Dahyabhai2-6/+52
* python/vte.defs: regenerate. * python/vte.override: update for vte_char_attributes rename.
2002-12-10add "uk" to the list of languages. remove the alternate attribute bit --Nalin Dahyabhai1-4/+4
* configure.in: add "uk" to the list of languages. * src/vte.h: remove the alternate attribute bit -- it's no longer meaningful. * python/vte.override: remove the alternate attribute, add the strikethrough attribute. * src/vte.c (vte_terminal_insert_char): perform drawing character set to Unicode mapping at insertion time if the alternate attribute is set, otherwise discarding the attribute. If the character being inserted is a graphic character, force its width to 1 or 2 depending on the current codeset (#99603). * src/vte.c (xlfd_from_pango_font_description): take advantage of XftXlfdParse if we were built with Xft, as it appears to handle family aliases. * src/vte.c (vte_terminal_draw_graphic): decide what to draw using Unicode code points (instead of reverse mappings to drawing set), and implement the double-thick versions of many of the existing glyphs. Return a boolean indicating whether or not we drew something. * src/vte.c (vte_terminal_draw_row): if vte_terminal_draw_graphic() returns FALSE, try to draw the graphic character using the current font. * src/vte.c (vte_terminal_paint): if vte_terminal_draw_graphic() returns FALSE, try to draw the graphic character using the current font. * src/caps.c: add the undocumented default 0 to the OSC set text parameters sequence (#100468). * README: updates. * src/iso2022.c, src/iso2022.h: add a width mask for overriding widths for ambiguous Unicode characters, and _vte_iso2022_get_width() for reading the width, using unused bits in Unicode in a manner similar to http://www.cl.cam.ac.uk/~mgk25/ucs/iso2022-wc.html * src/table.c,src/trie.c: strip out iso2022 widths when extracting parameters of control sequences. * src/vte.c: heed iso2022 widths when inserting characters into the screen buffer, but clear then before storing them so that copy and paste will continue to work. * src/matcher.c, src/matcher.h: add matcher, a wrapper for table and trie, and move _vte_table_narrow_encoding and _vte_table_wide_encoding to this module.
2002-11-05handle end-of-line selection correctly. Stop highlighting selection onNalin Dahyabhai1-0/+46
* src/vte.c: handle end-of-line selection correctly. Stop highlighting selection on click, but don't lose it until new text is selected. * python/vte.override: fix binding for set_colors() to properly take a list of colors for the palette (#97682). * src/vte.c, src/vte.h: add increase-font-size and decrease-font-size to allow mimicking XTerm's and Mozilla's behavior on Shift/Control KP_Add/KP_Subtract * src/vteapp.c: handle increase-font-size and decrease-font-size.
2002-10-25snip off final newlines when we're matching, they're usually not wanted.Nalin Dahyabhai3-24/+249
* src/vte.c (vte_terminal_match_check_internal): snip off final newlines when we're matching, they're usually not wanted. * src/pty.c, src/pty.h: replace the simpler pty_open() function with a logging version, adding the ability to specify a startup directory (Red Hat #76529). * src/vte.c, src/vte.h: replace the simpler fork_command() function with a logging version, adding the ability to specify a startup directory (Red Hat #76529). * src/vteapp.c: modify call to handle new fork_command(). * python/vte.defs: update as above. * python/vte.override: modify call to handle new fork_command(), adding an optional "directory" argument. * src/vte.c: refactor the selection code, cleaning up when selection is cleared/started/extended (#95783). Grab focus whenever we get button press or release or motion events. * src/vte.c: rework how wide characters are stored to allow storing tabs (#95958). * python/vte.override: wrap vte_terminal_get_text() and vte_terminal_get_text_range(). Based on patch from ha shao (#96230). * src/vte.c, src/vte.h: add a user pointer argument to get_text callbacks (#96230). * src/Makefile.am: bump shared library version because we changed a public function's signature. Take the opportunity to replace padding fields which had previously been used up.
2002-10-18make sure that strings passed to a commit signal are zero-terminatedNalin Dahyabhai1-1/+1
* src/vte.c: make sure that strings passed to a commit signal are zero-terminated (#96131). * python/Makefile.am: install the module in site-packages instead of a subdirectory, which doesn't work on my system.
2002-10-16adjust our adjustments whenever a line might scroll off the top of theNalin Dahyabhai1-8/+7
* src/vte.c: adjust our adjustments whenever a line might scroll off the top of the buffer. Fix computation of the new insertion delta to ensure that it never goes below the scroll delta, which should fix the resizing crashes, and add some debug assertions to verify this. * configure.in, python/Makefile.am: build the python bindings as a library, not a binary with wacky ldflags. * src/vte.c: don't try to close the pty at finalize time if we didn't open it. Patch from ha shao. * src/keymap.c, src/keymap.h: move the addition of modifiers into a separate function. Add the function key strings from terminfo for fkey_sun and fkey_hp cases. Make control+F1 = F13 only in vt220 mode. * src/vte.c: apply modifiers to function keys in normal and legacy modes.
2002-10-15add super-bogus bold text mode (Red Hat #74779).Nalin Dahyabhai1-0/+15
* src/vte.c: add super-bogus bold text mode (Red Hat #74779).