Re: cross compiling GTK+ on Linux for Windows

2010-06-16 Thread Krzysztof Kosiński
2010/6/14 Tor Lillqvist : > 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 > http://download.opensuse.org/repositories/windows:/mingw

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 value-chan

Re: GtkRange API is incomplete

2010-07-27 Thread Krzysztof Kosiński
W dniu 27 lipca 2010 18:06 użytkownik Alberto Ruiz 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 finished. Regards, K

Re: GtkRange API is incomplete

2010-07-27 Thread Krzysztof Kosiński
W dniu 27 lipca 2010 23:32 użytkownik Sven Neumann 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 checking if

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 : > 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 code could ge

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 : > ... 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 > distributions who have a newer/mor

Re: pixbuf<->cairo_surface_t conversion

2010-09-02 Thread Krzysztof Kosiński
2010/9/2 Havoc Pennington : > See bugs: > > https://bugzilla.gnome.org/show_bug.cgi?id=395578 > https://bugzilla.gnome.org/show_bug.cgi?id=491507 > > I'm attaching a patch which proposes some API to make GdkPixbuf > support the cairo RGB24/ARGB32 formats. > In this patch, there's no actual code to

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. https://bugzilla.gnome

Re: Glib: a Win32 discussion

2011-04-06 Thread Krzysztof Kosiński
2011/4/6 Kean Johnston : > 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 filenames on English W

Re: Glib: a Win32 discussion

2011-04-10 Thread Krzysztof Kosiński
2011/4/10 Tim Evans : > 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 is not about a

Re: GOption encoding trouble (was Re: Glib: a Win32 discussion)

2011-04-10 Thread Krzysztof Kosiński
2011/4/10 Hans Breuer : > Unfortunately none of the patches in bug #522131 fullfilled all the > requirements. And I do no have a good idea to solve it in GLib either. > The same problem was solved application specific to Dia with > https://bugzilla.gnome.org/show_bug.cgi?id=570592 What exactly are

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

2011-04-23 Thread Krzysztof Kosiński
2011/4/18 Alberto Ruiz : > 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 user. Appa

Re: About gsettings aborting on unkown schemas

2011-05-27 Thread Krzysztof Kosiński
2011/5/27 Havoc Pennington : > 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 situation. I

Re: Updated GTK+ 2.24.5 binaries (and bundle)

2011-07-12 Thread Krzysztof Kosiński
2011/7/12 Dieter Verfaillie : > 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 like gi-scanner, much

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 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 appears to work best for me.

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 com

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

2011-09-09 Thread Krzysztof Kosiński
2011/9/8 Kean Johnston : >> 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 you have the DLL,

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

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Jernej Simončič : > 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 characters. You can then use it with "narr

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

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Kean Johnston : > 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 I'm in favor of 64 b

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

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Jernej Simončič : > 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 this kind of filename, I would

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

2011-09-26 Thread Krzysztof Kosiński
2011/9/26 Kean Johnston : > 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 locale-specific encoding tha

Re: g_filename_to_uri() issue in glib-win32

2012-05-22 Thread Krzysztof Kosiński
2012/5/22 John Emmas : > 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 return the correc

Re: bugzilla cleanup

2013-02-05 Thread Krzysztof Kosiński
2013/2/4 Matthias Clasen : > 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 patches) if someone finally

Re: Stock Items Deprecation

2013-07-17 Thread Krzysztof Kosiński
2013/7/17 Emmanuele Bassi : > GAction replaces GtkAction; images on menus have been discouraged for > years, and the whole menu system has been replaced by GMenu XML > descriptions that can be exported on the session bus. GAction has no functionality for accelerators, icons, or automatically creat

Re: Stock Items Deprecation

2013-07-19 Thread Krzysztof Kosiński
2013/7/18 Emmanuele Bassi : > 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 influence where the

Re: Stock Items Deprecation

2013-09-11 Thread Krzysztof Kosiński
2013/9/11 Emmanuele Bassi : > 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 recently > used

Re: Directional Images

2013-10-16 Thread Krzysztof Kosiński
2013/10/17 Jasper St. Pierre : > 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 vaguely recall that on

Re: Removal of icons in buttons/menus

2013-10-16 Thread Krzysztof Kosiński
2013/10/15 Ryan Lortie : > "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 eve

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 : > 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. > > https://git.gnome.org/browse/gtk+/commit/?id=d48adf

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 : > 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 the paint clock,

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 > 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 excellent > reasons to d

Re: A Gtk's build system ?

2014-08-06 Thread Krzysztof Kosiński
2014-08-05 20:06 GMT+02:00 Simon McVittie : > In particular, Linux distributions *hate* waf. One of the reasons is: > >> Currently waf does basically same thing, you haven't to have waf >> installed to build, the 'waf' python script will require only python >> installed, as 'configure' requires bas

Re: A Gtk's build system ?

2014-08-06 Thread Krzysztof Kosiński
2014-08-05 15:41 GMT+02:00 Bernhard Schuster : > 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 > repository itself (or as a

Re: A Gtk's build system ?

2014-08-06 Thread Krzysztof Kosiński
2014-08-06 21:43 GMT+02:00 Colomban Wendling : > 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

Old Windows-specific bug in GOption

2009-12-29 Thread Krzysztof Kosiński
till doesn't fix the problem if argv is modified, causing unobvious breakage. I 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

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 "de

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() until stack overflow. Do you think