Re: GTK+ 2.20.0 is now available for download...

2010-03-24 Thread Tor Lillqvist
> Is it usual to release a stable version (here Gtk 2.20.0) based on > development librairies like Glib ??? If you don't like it, feel free to wait then for GLib 2.24. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/list

Re: Can't unmount flash drive after GtkFileChooserDialog in Windows

2010-03-24 Thread Tor Lillqvist
> fd 0 is open !! > fd 1 is open !! > fd 2 is open !! That is a rather pointless exercise as "file descriptors" on Windows aren't an operating system concept, as on Unix. In C code on Windows, "file descriptors" are just indexes into tables in the C library. There might even be several

Re: regarding gtk and x11 componenets

2010-03-19 Thread Tor Lillqvist
> I am trying to build gtk-directfb on phoneme …. Why do you assume people would know what "phoneme" is? > how to replace these with similar functions of gtk …… By asking for help on the Interwebs? Or by doing the research and coding required yourself? Which approach would you be more proud of?

Re: GTimers - do they need initialization ?

2010-03-17 Thread Tor Lillqvist
Read the documentation for g_timer_elapsed() more closely. #include #include int main (int argc, char* argv[]) { double seconds; gulong microseconds; GTimer* pTimer = g_timer_new (); do { seconds = g_timer_elapsed (pTimer, µseconds); printf ("Time elapsed = %d.%06lu\n", (int)

Re: Memory leaks?

2010-03-11 Thread Tor Lillqvist
> I'm building against GTK 2.10.4. It's pointless to report problems against such old versions. Even if there is a memory leak in GTK+ 2.10, nobody is going to fix it, and more importantly, nobody is going to release updated sources of it,when the current maintained version is 2.18. (Of course, yo

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> They're more portable than MFC. Well, yeah, but MFC is hardly a current technology. And C (or even C++) is really not a programming language I can recommend with a straight face for new code either. You should be comparing against Java or C#. Java can be quite portable, and C# too as long as you

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> It sounds like something that would be well worth having.  Was any > conclusion reached? There wasn't really much discussion. No forceful opposition, but no cheering either;) And I just haven't had time and/or inspiration to do it. --tml ___ gtk-list

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> Tor - you might not be the right person to ask about this - but do you know > if there are any plans to release official binaries for glib/gtk+ etc, built > to be compatible with VC++8? Well, I don't have such plans, it takes enough time to provide builds of the stack built with MinGW, but anybo

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> The REAL situation is that g_io_channel_win32_new_fd() works currectly for > stdin, stdout and stderr. Don't be so sure... Note that the file descriptors 0, 1 and 2 in one C runtime (for instance the msvcrt.dll that the prebuilt glib uses) are *different* than the file descriptors 0, 1 and 2 in

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> Curiously, this seems to work even if I link to the lib > that comes with MSVC8 Note that the msvcrt.lib import libraries in newer Microsoft compilers than MSVC6 confusingly don't link to msvcrt.dll, but the compiler-specific DLLs like msvcr71.dll, msvcr80.dll, msvcr90.dll. > Up until that poin

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> If it's not too much trouble Tor, could you let me know the dates for the > versions that you're using and I'll see if I can find a match somewhere? Oh, the version shouldn't matter, as long as it is the system's msvcrt.dll. The one in the windows/system32 folder. Make sure that is the one that

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
> The full source code is shown below but I could post the VC++ project as an > attachment if that would be helpful. Nope. A minimal sample source file in C is exactly what one typically wants. > Just let me know if you'd prefer a console app or a (gtk) GUI app. If the alleged problem is g_io_ch

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread Tor Lillqvist
If you post sample code, post a *complete* (but minimal) compilable (single source file) program. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: [Windows] cairo 1.8.8 from gtk.org depends on libpng12-0.dll but only libpng14-14.dll is offered

2010-03-02 Thread Tor Lillqvist
Look more closely. http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/cairo_1.8.8-4_win32.zip contains bin/libcairo-2.dll which depends on libpng14-14.dll. (Sure, the http://www.gtk.org/download-windows.html page had a link to the cairo 1.8.8-2 build (fixed now), but it shouldn't be hard

Re: Remarks on gtk docs

2010-03-01 Thread Tor Lillqvist
> Gtk+ development is not done on this list. Oh no, you let out the secret. Now the s/n ratio will drop on lists that developers actually read. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Use Umlauts on a Swiss Keyboard

2010-02-28 Thread Tor Lillqvist
> Has anyone any idea how to change this behaviour, or is this a bug? If keyboard input in GTK on Windows behaves significantly differently than Microsoft's toolkit(s) for normal Microsoft-produced keyboard layouts, then yes, it is a bug. Will it be fixed? Not necessarily, unless somebody submits

Re: on Win32, --enable-gdiplus makes pixbuf loading 6 times slower

2010-02-24 Thread Tor Lillqvist
> If we do want to build our own GTK for Windows, do you have > any advice about how to do that?  I believe that you cross-compile on > OpenSUSE, yes? No, I build locally on Windows, but that is mostly just inertia. Cross-compilation works fine, and is faster, and eventually I will switch to that.

Re: on Win32, --enable-gdiplus makes pixbuf loading 6 times slower

2010-02-24 Thread Tor Lillqvist
>  Tor, can you confirm that you turned on --enable-gdiplus starting with GTK > 2.18.3? Yes. >  I think we should probably build without GDI+ until/unless its > pixbuf loading can be made faster. You are of course free to do that. I am reluctant to change back to using the libtiff and libjpeg

Re: Remarks on gtk docs

2010-02-23 Thread Tor Lillqvist
> That is a sure way to loose the battle against QT. People who like Qt (not "QT") use it if they have a choice, people who like GTK+ use it if they have a choice. Where is the battle? --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome

Re: Remarks on gtk docs

2010-02-23 Thread Tor Lillqvist
> That is a sure way to loose the battle against QT. People who like Qt (not "QT") use that if they have a choice, people who like GTK+ use that if they have a choice. Where is the battle? --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.g

Re: How to use GIOChannel to write binary data

2010-02-07 Thread Tor Lillqvist
> Because you don't need one. Binary data is merely a stream of 8-bit chars > with no encoding. In general, the type name "char" is mostly misleading and counter-productive these days. People new to C should get used to just thinking "byte" when they see "char", either by itself or as part of som

Re: Can glib use external main loop?

2010-02-04 Thread Tor Lillqvist
> i would like to implement select by using glib. Please describe in more detail what you actually mean... If one takes that literally, it doesn't make much sense. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinf

Re: Can I include glib, gtk .h files in a .cc files

2010-02-04 Thread Tor Lillqvist
> Launcher/MyController.cc:2:18: error: glib.h: No such file or directory > Launcher/MyController.cc:6:21: error: gtk/gtk.h: No such file or directory Well, do you tell your compiler where the headers are? The compiler doesn't go out looking all through your file system for them by itself, you kno

Re: Trying to add a page to a notebook

2010-02-03 Thread Tor Lillqvist
> Why functions that receive GtkLabel don't need casting? Whether a cast is needed or not depends on the type of parameter expected, and the type of value passed... --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinf

Re: segfault in find_native_sibling_above_helper from gtk+2.18.6

2010-01-20 Thread Tor Lillqvist
> i compiled gtk+2.18.6 for use with directfb on an arm target. As far as I know, there isn't really anybody "supporting" the directfb stuff, so if you compile it, you also debug it ;) Sure, you can file a bug, too. Mailing this list is probably not useful. --tml _

Re: Windows: How to debug a gtk library function when app built with MSVC ?

2010-01-17 Thread Tor Lillqvist
> Is it possible to use MinGW GDB when stepping into the > libgtk-win32 DLL (from an MSVC compiled app) ? Yes, it should be possible. Attaching to an already running process might be the easiest way, so that the mingw-built DLLs are already present. (Otherwise, you would have to set a so-called "p

Re: GTK+/pango 32-bit on Windows 64-bit

2010-01-07 Thread Tor Lillqvist
> Is anyone aware of any issues running GTK+ and/or pango 32-bit on Windows 7 > 64-bit? Works fine here. > but someone who's trying to use my app is reporting that when they run it, > they get: > "libpango-1.0-0.dll is either not designed to run on Windows or it > contains an error." Do they h

Re: Window decoration question

2010-01-04 Thread Tor Lillqvist
> Sorry for my curiosity, but why? Because Windows doesn't have a supported and documented way to do it as far as I know. Sure, there are "shell replacements" (in Windows terminology, "shell" means "window manager") with more or less enthusiastic user communities, but still, my impression is that

Re: Window decoration question

2010-01-04 Thread Tor Lillqvist
> Any help, tip or suggestion will be welcome. Suggestion: Don't. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: GdkPixbuf-WARNING:cannot open pixbuf loader module file(on Windows)

2009-12-31 Thread Tor Lillqvist
> Normal way of installing GTK+ on Windows is to put it *somewhere* as-is > (that is, with all /bin, /etc, /lib and other subdirectories residing in > one directory) and add /bin subdirectory to system PATH. Or, if you have the application's executable in the same "bin" folder, nothing needs to be

Re: What, in detail, the GDK do?

2009-12-27 Thread Tor Lillqvist
> Frederico Schardong, > SOLIS - Open source solutions Presumably you know what "open source" means, then, do you? Hint: you have access to the source code. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-li

Re: Re: compile error in compiling gtk+2.18

2009-12-27 Thread Tor Lillqvist
>> Maybe a mention in the documentation would be good. Maybe duplication of information where people typically forget to update all instances is not good? --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Re: compile error in compiling gtk+2.18

2009-12-24 Thread Tor Lillqvist
> Is there any doc to explain the libs and versions that the gtk+ needed? 1) configure.in, 2) the .spec files in various RPM-based distros, 3) the corresponding files in DEB-based distros. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.g

Re: Gtk widget running in separate thread

2009-12-22 Thread Tor Lillqvist
> Is it possible to run a GTK widget entirely in a separate thread i.e. all > the input events on that widget are handled in that thread. On X11, probably yes, with extreme care. Is it a good idea? NO! (And in GTK+ on Windows, it is not really possible, not even using the same extreme care as in

Re: Memory leak in gtk label?

2009-12-18 Thread Tor Lillqvist
>        I am using valgrind to check my application, I found a lot of memory > leak issue related to GtkLabel or maybe pango staff. > And I got a lot of leak report in gtk_label_size_request function. Detail as > attached. I don't see any leaks in gtk_label_size_request in your log file. I see

Re: Distribution

2009-12-11 Thread Tor Lillqvist
> So if I want to distribute a closed-source GTK+/Cairo Windows app, I can > package, > for instance, my .EXE and Tor Lillqvist's Win DLLs, but I must include the DLL > source and build environment? Not the whole "build environment" if by that you mean compiler etc. Just the sources for the LGPL

Re: Distribution

2009-12-09 Thread Tor Lillqvist
Note that replies you get on this list is not real legal advice of course. If you really want that, contact a lawyer. > I want to offer it as free software downloadable from my > site but I don't want to distribute my source code Here you are confusing the term "free" as used in normal talk meani

Re: Problems with ComboBox (gtk+ 2.18 and higher)

2009-12-07 Thread Tor Lillqvist
> Note: I submitted this as a bug report (Bug 603250) several weeks ago and > there has not been any activity. That is how it works. There is no service level guarantee. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/li

Re: dynamically growing 2D aray of structues

2009-11-26 Thread Tor Lillqvist
>  g_print ("Freeing struct %p: %s\n", p, p->p); > >  g_free (p->p); >  g_free (p); That should of course be g_slice_free (mystuct, p) as I allocated the structure with g_slice_new. /me blushes. --tml ___ gtk-list mailing list gtk-list@gnome.org http:/

Re: dynamically growing 2D aray of structues

2009-11-26 Thread Tor Lillqvist
A GPtrArray of GPtrArrays? #include typedef struct { char *p; } mystruct; static void free_mystruct (gpointer data) { mystruct *p = data; if (p == NULL) return; g_print ("Freeing struct %p: %s\n", p, p->p); g_free (p->p); g_free (p); } static void free_sub_array (gpointer da

Re: Shifted area of button sensibilty

2009-11-18 Thread Tor Lillqvist
> The following code reproduces the problem. Please file a bug report at bugzilla.gnome.org, and attach the code to the bug report. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Shifted area of button sensitivity in not decorated windows

2009-11-18 Thread Tor Lillqvist
I don't know that problem off-hand, but if you can produce a minimal but complete sample program that exhibits the bug, please file a bug report, and attach the sample program (as a single source file in C or Python). That would be very helpful, thanks. --tml __

Re: GTK with CodeBlock IDE

2009-11-14 Thread Tor Lillqvist
Sorry, but I doubt there are many people here using CodeBlocks, especially on Windows. Is there no more appropriate CodeBlocks -specific mailing list or "forum"? Where did you hear about using CodeBlocks for GTK+ programming on Windows? Can you get any help from them? --tml __

Re: a question about gtk_window_get_type

2009-11-11 Thread Tor Lillqvist
> I can't find the definition of gtk_window_get_type. It's get expanded from the G_DEFINE_TYPE_WITH_CODE() macro call. See http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-DEFINE-TYPE--CAPS . --tml ___ gtk-list mailing lis

Re: GTK+ on windows

2009-10-17 Thread Tor Lillqvist
> These are the sizes of the working binary dll OK, so this then includes also sections that have no impact at run-time size. Please use a tool like "size -A" or "link -dump -headers" to check the size of just those sections that actually are used by the code at run-time. > Looking at your versio

Re: GTK+ on windows

2009-10-16 Thread Tor Lillqvist
> * GNU gettext is hopeless and unportable in it's current state, Well, "unportable" is perhaps a bit pessimistic, as it is possible to build it both for 32-bit and 64-bit Windows and both builds seem to work as far as I see. But it certainly is a pain, indeed. One can only hope that if a 0.18 (or

Re: Error while configuring Gtk+-2.2.4

2009-10-15 Thread Tor Lillqvist
> What am i doing wrong? Not reading what it tells you, and acting accordingly? --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Gtkbuilder on win32 issues

2009-10-09 Thread Tor Lillqvist
Guess what, the program works fine for me with the GTK+ 2.16.6 bundle from http://ftp.gnome.org/pub/GNOME/binaries/win32/gtk+/2.16/ . I have the "bin" from that in PATH, no other GTK+ related directories in PATH, and I verified with gdb that the DLLs really are from that bundle. I have i18ntest.exe

Re: Gtkbuilder on win32 issues

2009-10-08 Thread Tor Lillqvist
Filed bug https://bugzilla.gnome.org/show_bug.cgi?id=597801 for this. Please add follow-ups as comments to that bug. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: GTK+ 2.16.6 Win32 dependencies...

2009-10-04 Thread Tor Lillqvist
> Just wondering why this might be? Because I decided to build the libpangocairo and cairo DLLs I distribute with the fontconfig/freetype font backends, too, in order to fix a problem in GIMP. --tml ___ gtk-list mailing list gtk-list@gnome.org http://ma

Re: State of Gtk+-2.18 On Windows

2009-10-01 Thread Tor Lillqvist
> Any idea on how difficult it'd be to modify the > ms-windows theme engine code to make it work, Not really. Perhaps not that hard, as it "partially" works; if you move the cursor around in gtk-demo, the UI elements gradually appear under the pointer... > and do you happen to know if > anyone is

Re: State of Gtk+-2.18 On Windows

2009-09-30 Thread Tor Lillqvist
> As I am currenlty unable to test, could someone please advise me on the > state of Gtk+-2.18 on windows? Try it, there are binaries in http://ftp.gnome.org/pub/GNOME/binaries/win32/gtk+/2.18/ . You will need up-to-date dependencies too, in hopefully self-evident locations near to that. > Has it

Re: ReRe: Compiling gtk+ with MinGW on WindowsXP - perl problem

2009-09-13 Thread Tor Lillqvist
(Keeping gtk-list in the loop, as that is where the thread started.) > The problem with chmod is, that XP simply has no mechanisms to store the > result of chmod -m a+w, for example. Well, that depends on one's point of view;) The access control lists of NTFS is in general more powerful than the

Re: Compiling gtk+ with MinGW on WindowsXP - perl problem

2009-09-13 Thread Tor Lillqvist
(Note that this list, gtk-list, is definitely oriented towards GTK+ application writers, so your mail would have been better suited for gtk-devel-list, which is about developing GTK+ itself.) > following the instructions from > http://kemovitra.blogspot.com/2009/06/compiling-gtk-2-for-windows.html

Re: GdkEventKey --> utf-8 ?

2009-09-10 Thread Tor Lillqvist
> ... Why does GtkEntry work correctly? Because there the inserted text goes through lots of other code than just directly mapping from key presses to characters, which is never going to work in general. You need to read up on GtkIMContext, I think. > But because the GtkEntry handles this correc

Re: GdkEventKey --> utf-8 ?

2009-09-10 Thread Tor Lillqvist
> Perhaps this includes the solution. Any Spanish users/developers on > this list ? Dead accent keys are in no way unique to Spanish keyboards. And then there is also something called compose sequences, which are popular in some locales. And then there are Input Methods which are popular especiall

Re: GdkEventKey --> utf-8 ?

2009-09-10 Thread Tor Lillqvist
>  + The key on the left of ç. (in red - has a blu { ) So: >  + I press and hold Shift, then press that key, unpress and type o. OK. So he is not pressing any 'ö' key at all. He is pressing two separate keys, presumably a so-called "dead" accent key for the diaeresis (¨) and then 'o'. It is the up

Re: GdkEventKey --> utf-8 ?

2009-09-10 Thread Tor Lillqvist
>  How can I convert GdkEventKey::keyval into UTF-8 character? "UTF-8 character" does not mean anything. UTF-8 is a way to represent Unicode characters (more exactly, "code points") as a sequence of *bytes*. > That is: gdk_keyval_to_unicode() supplies a bad Unicode It shouldn't. Please post a mi

Re: Status of GTK+ on Mac OS X?

2009-09-03 Thread Tor Lillqvist
> Can you point me at a particular project on OBS? The repository http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_10.3/ for 32-bit binaries, and http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_10.3/ for 64-bit ones. The Windows binaries are in th

Re: Status of GTK+ on Mac OS X?

2009-09-03 Thread Tor Lillqvist
> Does GTK on Windows currently build entirely with MinGW, Yes it does. It is much easier to cross-compile it from Linux than to set up a working build environment on Windows natively, though. (Although, once you have such an environment, it does work more or less as well as on Unix.) So I would

Re: Status of GTK+ on Mac OS X?

2009-09-01 Thread Tor Lillqvist
> Is there a buildbot somewhere running continuous integration testing of > GTK+ with the Mac platform? What about other platforms? Is that > something that the community is lacking in order to progress this stuff? Depends on what you mean with "buildbot". I guess buildbots are usually used to con

Re: Status of GTK+ on Mac OS X?

2009-09-01 Thread Tor Lillqvist
> Does the organisation have a plan to resolve the > outstanding bugs and features in gtk-quartz? What "the organisation"? --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Screen resolutions

2009-08-26 Thread Tor Lillqvist
> Actually, I want to store these screen resolutions in GtkListStore and then > allow user to choose from combobox the possible items. > > Is there such a function(s) or some kind of process in GTK+ that I can > achieve this? No, sorry. If you want to use some cross-platform toolkit that has this

Re: the initial release of gtk

2009-08-24 Thread Tor Lillqvist
Perhaps Kareem could, just out of interest, tell us why he needs to know this? --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: hardcoded dependencies problem with building/installing GTK+

2009-08-20 Thread Tor Lillqvist
> I was able to launch my application without the font cache. But I suspect it > would impact my application's performance. Any more hints on solving the > fonts.cache issue? Pass a --with-cache-dir=/var/cache/fontconfig (or whatever location that will be writable on each machine) to the fontconfi

Re: the initial release of gtk

2009-08-20 Thread Tor Lillqvist
> i wanna to know the date of the initial release of GTK+ and the number of it On ftp.gimp.org I find version 0.99.0: ftp://ftp.gimp.org/pub/gtk/v0.99/gtk+-0.99.0.tar.gz from 1997-12-14 --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnom

Re: hardcoded dependencies problem with building/installing GTK+

2009-08-20 Thread Tor Lillqvist
> However, when I was about to build ATK using the "configure" line as below: >> 'CFLAGS=-I/tmp/runtime/prefix/include/glib-2.0 >> -I/tmp/runtime/prefix/lib/glib-2.0/include' When I said that software installed with DESTDIR can not be run correctly from there, I should have added that it presumab

Re: hardcoded dependencies problem with building/installing GTK+

2009-08-19 Thread Tor Lillqvist
2009/8/19 Qing Men : > Yes, using "configure --prefix=my_install_dir" would have solved all the > problems. But we can't write to my_install_dir from the host where we do the > build. my_install_dir is a mirrored filer which has mirroring sites around > the world. Only one host can write to the mas

Re: hardcoded dependencies problem with building/installing GTK+

2009-08-19 Thread Tor Lillqvist
> 1. "configure --prefix=my_build_dir" > 2. "make" > 3. "make install". > 4. cp my_build_dir/lib my_install_dir/lib This probably is a stupid question, but why didn't you run configure --prefix=my_install_dir then? > But I'm now facing with another problem. The application would try to look > for

Re: Error converting a pipe (Handler) to fd on vs 2003 to use with g_io_channel_win32_new_fd

2009-08-11 Thread Tor Lillqvist
>>Another solution would be to use the msvcrt.dll runtime even if you >>use Microsoft's current compiler. > I don't want to require existing clients to have an additional requirement > of adding another dll, You have it backwards here. The msvcrt.dll that MinGW-compiled code uses, and that it req

Re: how to to put windows HANDLE into a GPollFD

2009-08-11 Thread Tor Lillqvist
> I am trying to use windows anonymous read pipe with gtk and need to put HANLE > into GPollFD. How do I do that? You can use _get_osfhandle() (declared in ) to get the Windows HANDLE for a C library file descriptor (for instance an anonymous pipe end). But that doesn't help much, as anonymous pip

Re: Error converting a pipe (Handler) to fd on vs 2003 to use with g_io_channel_win32_new_fd

2009-08-08 Thread Tor Lillqvist
> when I can this g_io_channel_win32_new_fd, I see this warning, > > GLib-WARNING **: giowin32.c:1564: 3 isn't a C library file descriptor > and thus pipe isn't created at all :( Hmm, you already created the pipe in the CreatePipe() call. You mean the watch isn't created. Most likely this is bec

Re: New Windows binaries on ftp.gnome.org

2009-07-31 Thread Tor Lillqvist
> Thanks a lot for providing up to date binaries for the Gtk+ stack and > a lot of dependencies. Now if only the http://www.gtk.org/download-windows.html page would automatically update after I pushed an update to gnome git... --tml ___ gtk-list mailing

Re: on windows xp gtkrc error if utf8

2009-07-22 Thread Tor Lillqvist
> if the file is utf8 i received the following error when i run gtk-demo I doubt it being UTF-8 was the core problem here, but simply that the syntax was wrong? Where do you want to use non-ASCII characters in the gtkrc file? --tml ___ gtk-list mailing

Re: When to use gdk_threads_init?

2009-07-09 Thread Tor Lillqvist
> Hello, I'm new to GTK. I am using gthread with gtk both in Windows and Ubuntu. > When I using it in Windows, [...] it works well. That sounds strange, as using GTK+ from multiple threads definitely does not work in general on Windows. (Some unknown subset of GTK+ calls might work even from multi

Re: mutex problems on Windows

2009-07-06 Thread Tor Lillqvist
> W locks j->M through g_mutex_lock(j->M) so that a subsequent lock will > block. > W blocks on M through a second call to g_mutex_lock(j->M) I.e. a thread calls g_mutex_lock() on a mutex that it already has locked. This is explicitly documented as undefined behaviour. See http://library.gnome.or

Re: Finding width of a piece of text

2009-05-21 Thread Tor Lillqvist
> Ah.  Please file against cairo at http://bugs.freedesktop.org/ And please attach a complete and minimal sample program (as a single source file in C or Python) that exhibits the problem. If you have a suggested patch, that would be greatly appreciated, too. --tml ___

Re: Re: Why there's still ONE element left after g_slist_free () ?

2009-05-14 Thread Tor Lillqvist
> Its old hat to C programmers that you set any object to NULL when you're done > with it, > which returns the memory used to the heap. That's not necessary with > languages that > have garbage collection like Java, Python, etc. Yes and no. One could say that on the contrary, in languages with g

Re: something like system function

2009-05-14 Thread Tor Lillqvist
> I need something like function system of stdlib.h, but I need to get > the output of the command... popen()? or g_spawn_command_line_sync(). --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: GTK win32 - g_main_context_iteration during WM_WINDOWPOSCHANGED

2009-05-13 Thread Tor Lillqvist
> Am I misusing the timer? Maybe. The exact behaviour of GTK+ on Windows is hardly well-specified. You are just doing something uncommon that nobody has thought of or tested. Does it work as you expect on X11? --tml ___ gtk-list mailing list gtk-list@g

Re: Why there's still ONE element left after g_slist_free () ?

2009-05-13 Thread Tor Lillqvist
> I thought after g_slist_free (), the GSList should be empty(NULL), why still When you say "the GSList should be NULL", what do you mean? You have a GSList* variable that used to point to the list? Do you assign NULL to that variable yourself? If not, it is not going to become NULL magically by i

Re: cygwin 1.5.25 missing gtkrecentmanager.h

2009-05-09 Thread Tor Lillqvist
> Are there widgets that are not available on non-unix platforms? Cygwin *is* a Unix platform. That's the whole point with Cygwin. What is the version of GTK+ that you have on Cygwin? gtkrecentmanager was introduced in GTK+ 2.10. Are you BTW sure that it actually is GTK+ with the X11 backend on

Re: gmodule for wince

2009-04-26 Thread Tor Lillqvist
> But this file cause some problems with the functions GetProcAddress and > LoadLibrary. The confusions > results from the call of these functions of the wide char type > GetProcAddressW and LoadLibraryW at > the compile process. But the used strings are not wide char strings. Are you compiling

Re: using a locale other than the system default

2009-04-23 Thread Tor Lillqvist
For software that uses GNU gettext, set the LANG environment variable. Just like on POSIX. Or just delete the message catalogs (typically the share/locale subtree in the installation folder). --tml ___ gtk-list mailing list gtk-list@gnome.org http://mai

Re: Question about compiling GTK app under Windows

2009-04-08 Thread Tor Lillqvist
> I use "#include " line in source file. > I have received the message: gtk/gtk.h: No such file or directory. > I think the problem is in the path separator (/) which in Windows is "\". Not true. '/' works equally well on the Win32 level. It's just the Windows kernel (well below Win32, with a most

Re: GTK 2.16 assertion `GTK_IS_TEXT_LAYOUT (layout)' failed

2009-04-01 Thread Tor Lillqvist
> I just built and tested on gtk-2.16.0 on Linux and got the exact same > assertion warning. > However you said I should only file a bug if it was not present on Linux. > Any hints on what will happen now? Well, it could still be a bug in gtk+ of course, but maybe it is more probable that it is a

Re: GTK 2.16 assertion `GTK_IS_TEXT_LAYOUT (layout)' failed

2009-03-31 Thread Tor Lillqvist
In fact I notice that for each click, gtk_text_layout_set_preedit_string() is called twice, the second time with a NULL layout. Could it be that pygtk installs a log handler that filters out repeated identical messages? --tml ___ gtk-list mailing list gt

Re: GTK 2.16 assertion `GTK_IS_TEXT_LAYOUT (layout)' failed

2009-03-31 Thread Tor Lillqvist
> Is this due to mistake in my code or is it a GTK bug? Try it with the same GTK+ and GLib versions on Linux, too... (with builds of GTK+ and GLib that do check assertions). If you get no warning on Linux, please file a bug. When clicking the button, gtk_text_layout_set_preedit_string is first

Re: win32: lib path problem with gtk+-bundle_2.14.6-20081216_win32.zip

2009-03-24 Thread Tor Lillqvist
> May I then conclude that the gtkmm bundle is broken? Yes, definitely. (Unless they have rebuilt gdk-pixbuf to use built-in loaders, but still distribute the gdk-pixbuf.loaders file.) --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome

Re: The right direction

2009-03-23 Thread Tor Lillqvist
> I don't mind having to change a few things, or having to write some OS > specific code, but I was wondering if GTK+ code can be just compiled on > another OS (with the dev-tools installed) without any changes? Usually, yes, but there are some differences in details that might surprise you if you

Re: Windows: GDK is blocking some of WM_MOUSEMOVE

2009-03-12 Thread Tor Lillqvist
> if this a performance hack or does it really prevents a bug in GTK behavior? This code was introduced in 2005 to fix http://bugzilla.gnome.org/show_bug.cgi?id=314995 . I guess it would be a good idea to test if it is actually needed any longer, in case the upper levels now can manage even if tha

Re: Win32: All-in-one bundle linked to msvcr80.dll?

2009-03-03 Thread Tor Lillqvist
No executable (.exe or .dll) in the gtk+ bundle links to msvcr80.dll. You can easily verify this using objdump for instance. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: communication between two gtk applications

2009-02-26 Thread Tor Lillqvist
> Can anybody tell me the interface with the help of which i can communicate > between two independent gtk applications.. Drop the "gtk" from your question and think again. In other words, there isn't anything in gtk that would be related to interprocess communication. You must use some mechanism

Re: why is cairo with pdf and postscript backend mandatory?

2009-02-25 Thread Tor Lillqvist
> I guess that GLib itself dosn't require Cairo, but I seem to remember that > if you use gtk+ with cairo, it needs a glib built with that version of cairo. > That is, if you try to compile Pango, and your glib has no cairo builtin, > Pango's configure script will die. That doesn't make any sense

Re: Window Mobile Development.

2009-02-13 Thread Tor Lillqvist
> Is GTK support available For Windows Mobile You state your question a bit oddly, but I suppose you simply want to ask if GTK+ can be built for, and works on, Windows Mobile. Not as far as I know. If somebody has managed to build the GTK+ stack for Windows Mobile, they haven't upstreamed the

Re: Can't find stock images under Windows

2009-02-09 Thread Tor Lillqvist
> I'm having a problem findiing stock images under Windows. In the attached, > there is an image beside the image on Linux but not under Windows. As far as I know, it is intentional that with the ms-windows theme there are no images on stock buttons. Whether buttons can have images or not is somet

Re: GdkKeyEvent keyval

2009-01-28 Thread Tor Lillqvist
> I was wondering if there is a way of knowing if a character is printable or > not (Like Ctrl, Alt...) using the keyval value? Convert the key to the corresponding Unicode character, if any, using gdk_keyval_to_unicode() and test using g_unicode_isprint() ? --tml

Re: GTK+ and Gimp

2009-01-25 Thread Tor Lillqvist
> i'm just guessing, but it may be related to X11's rather limited concept > of window relationships, Limited, indeed, but even more limited than you perhaps guess;) The X11 protocol doesn't have any concept of relationship between top-level windows. A core principle of X11 is to provide mechanism

Re: Building Pango (1.22.4) on Win32

2009-01-19 Thread Tor Lillqvist
> Is there any time plan for the next updated of the Pango Win32 > binaries? (I really trust them a lot more). Hmm, I seem to have overlooked the Pango 1.22.4 release. I will build binaries right away. --tml ___ gtk-list mailing list gtk-list@gnome.org

Re: gtkwindow strange problem

2009-01-05 Thread Tor Lillqvist
Please file a bug report at bugzilla.gnome.org (product: gtk+ and component: win32) and attach a minimal but complete sample program (as a single source file in C or Python) that exhibits the problem. --tml ___ gtk-list mailing list gtk-list@gnome.org ht

  1   2   3   4   >