Re: [glib] malloc and bdwgc

2016-01-11 Thread Krzysztof Kosiński
On Jan 11, 2016 7:03 PM, "张海" wrote: > > Yes, but the point of my previous email is that the third-party GC_malloc() might eventually call malloc() itself, and by defining a malloc() in my program, GC_malloc() will again call into my malloc() and then GC_malloc()

Re: A Gtk's build system ?

2014-08-06 Thread Krzysztof Kosiński
2014-08-05 15:41 GMT+02:00 Bernhard Schuster schuster.bernh...@gmail.com: If this ever happens, I hope for waf to get some traction, it is way faster and has the power of py and also prevents all the version incompatibility issues on different host machines as one can ship the waf with the

Re: A Gtk's build system ?

2014-08-06 Thread Krzysztof Kosiński
2014-08-06 21:43 GMT+02:00 Colomban Wendling lists@herbesfolles.org: Le 06/08/2014 21:30, Krzysztof Kosiński a écrit : [Waf] does not require silly lists of files to work If that refers to using globs in the build system files, don't. Glob showed on many a situation to be the source

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-23 Thread Krzysztof Kosiński
2014-06-21 3:00 GMT+02:00 Jasper St. Pierre jstpie...@mecheye.net: To better support Wayland with fewer copies and less drawing artifacts, I've pushed some potentially breaking changes to GDK, namely around gdk_cairo_create and gdk_window_begin_paint_region.

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-23 Thread Krzysztof Kosiński
2014-06-24 3:02 GMT+02:00 Jasper St. Pierre jstpie...@mecheye.net: May I ask why you can't paint in the draw signal? GDK already tracks invalidated windows marked by exposes and gdk_window_invalidate_rect itself. It should be as efficient as drawing in an idle handler, and also cooperates with

Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed

2014-06-23 Thread Krzysztof Kosiński
On Mon, Jun 23, 2014 at 9:59 PM, Paul Davis p...@linuxaudiosystems.com wrote: as Jasper noted in his reply, but i'll describe differently: it is one thing to draw (even in a separate thread) in a cairo surface that can later to used during an actual redraw. and certainly many programs have

Re: Directional Images

2013-10-16 Thread Krzysztof Kosiński
2013/10/17 Jasper St. Pierre jstpie...@mecheye.net: I think the thing that we'd want is to have a separate RTL icon theme that inherits from the LTR icon theme, but overrides some icons with flipped icons. This can be done with a few tweaks to the icon-theme specification, and in GTK+. I

Re: Removal of icons in buttons/menus

2013-10-16 Thread Krzysztof Kosiński
2013/10/15 Ryan Lortie de...@desrt.ca: Any icon that comes before a menu item’s text should be laid out as if it is the beginning of the text... and In particular, icons of this sort should not go inside the margin... (...) GtkImageMenuItem puts its icon in the margin. We don't

Re: Stock Items Deprecation

2013-09-11 Thread Krzysztof Kosiński
2013/9/11 Emmanuele Bassi eba...@gmail.com: as the author of GtkRecentAction, I'm honestly not concerned. GtkRecentAction was a stop-gap that covered users of the old EggRecent* API, and was never really useful; in a sense, it was a class used to paper over a deprecation. shoving a bunch of

Re: Stock Items Deprecation

2013-07-19 Thread Krzysztof Kosiński
2013/7/18 Emmanuele Bassi eba...@gmail.com: support for those features has already been developed and it is going to be added to GAction before we release GLib 2.38 and GTK 3.10, and improved in the future so that it matches with the overall spirit and design of the API. if you want to

Re: bugzilla cleanup

2013-02-05 Thread Krzysztof Kosiński
2013/2/4 Matthias Clasen matthias.cla...@gmail.com: Hi everybody, a while ago, we've talked about getting a handle on the enormous number of open bugs in glib and gtk. This bug, which makes GOption useless on Windows and has accumulated 93 comments so far, could be easily fixed (it has

Re: g_filename_to_uri() issue in glib-win32

2012-05-22 Thread Krzysztof Kosiński
2012/5/22 John Emmas john...@tiscali.co.uk: So for example, if the input string is Göran (encoded as UTF-8) I get the wrong output (hopefully, you can see that the 'o' has an umlaut).   g_filename_to_uri encodes 6 characters and returns G%C3%B6ran instead of encoding just 5 characters to

Re: _wstat on Windows (actually stat stuff in general)

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Jernej Simončič jernej|s-gm...@eternallybored.org: Won't that fail on filenames that have characters outside of the active codepage instead? You can use g_win32_locale_filename_from_utf8() to obtain a short filename (8.3) that will refer to the filename with unrepresentable

Re: _wstat on Windows (actually stat stuff in general)

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Kean Johnston kean.johns...@gmail.com: Despire the coolness of Windows supporting time fields 64-bits wide for the least amount of pain it would probably be best if the time fields were left at 32-bits (although it would be really cool and forward thinking if we used 64-bits), FWIW

Re: _wstat on Windows (actually stat stuff in general)

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Jernej Simončič jernej|s-gm...@eternallybored.org: But which is more likely to happen - user having a filename with foreign characters, or user having a symlink (which on Windows can only be created by administrators)... Based on the bugs reported against Inkscape that were caused by

Re: _wstat on Windows (actually stat stuff in general)

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Kean Johnston kean.johns...@gmail.com: Plus I am fairly sure (but not 100%) that MBCS can represent all of the characters UTF-16 can (which is what the _wstat function uses). MBCS is misleadingly named in Microsoft documentation. It is not always a multibyte encoding. It is a

Re: Fwd: Plans for GTK+ Bundles for win32 and win64?

2011-09-09 Thread Krzysztof Kosiński
2011/9/8 Kean Johnston kean.johns...@gmail.com: Note that many of us build programs with MinGW, so for such suite to be useful, it should provide GCC-compatible import libraries. If MinGW can't use standard microsoft import libraries that (from my perspective) is Someone Else's Problem. If

Deprecated symbols list

2011-07-20 Thread Krzysztof Kosiński
Hello I recently finalized the removal of all deprecated Glib symbols from Inkscape [1]. Now I'm exploring removing some of the deprecated GTK symbols. This site [2] has a link to a list of deprecated symbols in HTML format, but there is no text file which could be used with the provided egrep

Re: Updated GTK+ 2.24.5 binaries (and bundle)

2011-07-13 Thread Krzysztof Kosiński
W dniu 12 lipca 2011 19:17 użytkownik Dieter Verfaillie diet...@optionexplicit.be napisał: Fair enough, using a custom build tool on Windows is your choice, not mine ;) Maybe I wasn't clear enough. I worked on *getting rid* of this Windows-only build tool, but didn't succeed yet. FWIW, Waf

Re: Updated GTK+ 2.24.5 binaries (and bundle)

2011-07-12 Thread Krzysztof Kosiński
2011/7/12 Dieter Verfaillie diet...@optionexplicit.be: I have been dreaming of having an msys-python port though (considered by most to be even more exotic than cross-compiling Python itself, I guess). Would make jhbuild, but also other tools written in Python that need to run at build-time

Re: About gsettings aborting on unkown schemas

2011-05-27 Thread Krzysztof Kosiński
2011/5/27 Havoc Pennington h...@pobox.com: Config schemas that contain type checking and default values are part of the program; the program is either incorrect, or redundant in a way likely to create bugs, without the schemas. If schemas were just docs or something, it would be a different

Re: Resource framework, relocatability (was Re: Glib: a Win32 discussion)

2011-04-23 Thread Krzysztof Kosiński
2011/4/18 Alberto Ruiz ar...@gnome.org: So yeah, .RPM/.DEB is absolutely fine for system level components (platform, shell...). But for applications, I have to say I really don't agree at all that it is the right mechanism, unless you come up with a sandboxed approach for apps installed by the

Re: Glib: a Win32 discussion

2011-04-10 Thread Krzysztof Kosiński
2011/4/10 Tim Evans t.ev...@aranz.com: A combination of GetCommandLineW and CommandLineToArgvW can get you the arguments as wchar_t strings which could then be converted to utf8. Is this just something that glib needs to provide a convenience function for? g_win32_get_utf8_argv() maybe? This

Re: Glib: a Win32 discussion

2011-04-06 Thread Krzysztof Kosiński
2011/4/6 Kean Johnston kean.johns...@gmail.com: Everyone, WARNING: long, detailed message. If you don't care about Win32, move on. Other annoying Windows issues specific to glib: 1. GOption fails hard for filenames which are in a language different than your Windows. E.g. Chinese or Russian

Patch review needed

2011-02-17 Thread Krzysztof Kosiński
Hello There's a patch available for bug #522131 which severely affects the usability of GOption on Windows. There is a patch available, but it needs review. Can one of the developers look at it? It would enable a few cross-platform applications to drop a dependency on popt.

Re: AC_MSG_RESULT(patching libtool to fix HIDEOUS BREAKAGE) [was Re:dconf 0.5]

2010-08-05 Thread Krzysztof Kosiński
2010/8/5 Simon McVittie simon.mcvit...@collabora.co.uk: ... but it appears to be distribution-hostile, at least in its current state:    http://www.mail-archive.com/debian-de...@lists.debian.org/msg281373.html Yes, autofoo also results in embedding a copy of itself in tarballs, but

Re: AC_MSG_RESULT(patching libtool to fix HIDEOUS BREAKAGE) [was Re:dconf 0.5]

2010-08-04 Thread Krzysztof Kosiński
2010/8/4 Havoc Pennington h...@pobox.com: automake is fine, but libtool is a real problem. It seriously lengthens compile/install times in a way that's probably wasted tens of thousands of developer hours over the years, *at least*. In all honesty, most likely any of us who write a lot of C

GtkRange API is incomplete

2010-07-27 Thread Krzysztof Kosiński
Hello Here is my use use case (in Inkscape). I have a set of sliders (GtkScale) that control some values in the document. I want to update the view of the document in real time, but only push the change on the undo stack when the drag is finished. But the only signal I can connect to is

Re: GtkRange API is incomplete

2010-07-27 Thread Krzysztof Kosiński
W dniu 27 lipca 2010 18:06 użytkownik Alberto Ruiz ar...@gnome.org napisał: Hi there, You can just connect to the GtkRange's GtkAdjustment value-changed signal for the view update. The problem is not the view update but the undo stack update. It should only be updated when the drag is

Re: GtkRange API is incomplete

2010-07-27 Thread Krzysztof Kosiński
W dniu 27 lipca 2010 23:32 użytkownik Sven Neumann s...@gimp.org napisał: You could implement undo compression as we do in GIMP. Multiple consecutive position changes are compressed into a single undo step. This can be easily implemented by looking at the top-most step on the undo stack and

Re: cross compiling GTK+ on Linux for Windows

2010-06-16 Thread Krzysztof Kosiński
2010/6/14 Tor Lillqvist t...@iki.fi: For anybody new looking into it, I certainly recommend using cross-compilation. Have a look at the spec files for the cross-compiled GTK+ stack (and much more) for Windows in the OpenSUSE Build Service. See

Re: Old Windows-specific bug in GOption

2010-01-29 Thread Krzysztof Kosiński
If anyone is interested in fixing this highly annoying bug that prevents serious projects from using GOption on Windows, please see the new patch I created: https://bugzilla.gnome.org/show_bug.cgi?id=522131 It defines a new structure, GCommandLine, that can be created from various sources. The

Old Windows-specific bug in GOption

2009-12-29 Thread Krzysztof Kosiński
would favor solution #2, since it's the simplest and least probable to cause confusion, but bug commenters apparently wanted to go with #6. I sent a few patches implementing #6 but they weren't committed. What do others think about this? Regards, Krzysztof Kosiński