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

2011-09-29 Thread Tor Lillqvist
_wstat does not work with Windows Vista symbolic links. In these cases, _wstat will always report a file size of 0. _stat does work correctly with symbolic links. Ugh, how weird and unexpected. (My expectation would have been that neither supports symbolic links.) For which C runtime is

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

2011-09-29 Thread Tor Lillqvist
Ugh, how weird and unexpected. (My expectation would have been that neither supports symbolic links.) For which C runtime is this, btw, the system msvcrt.dll, or some of the MSVC-version-specific ones? The MSDN documentation doesn't specify. I suspect its all of them TBH. Actually, looking

Re: g_remove

2011-02-19 Thread Tor Lillqvist
that means glib and any app using glib is indirectly dependent on compiler with C99 support. Interesting. I guess nobody told those who continue to manage to build GLib and the GTK+ stack in general with Microsoft's compiler, which does not claim C99 compliance. --tml

Re: g_remove

2011-02-19 Thread Tor Lillqvist
- doesn't compile on x86-32 linux with glibc when I remove all typedefes and occurences of long long in header files Equally interesting, it doesn't compile if you replace all instances of the letter 'a' in your header files with the letter 'b'. Or, if you feel really adventurous, with the

Re: g_remove

2011-02-19 Thread Tor Lillqvist
Glib just cannot require 64bit integer type and be C89 standard compliant Right. And as far as I know, nobody has claimed it is. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: g_remove

2011-02-19 Thread Tor Lillqvist
Glib just cannot require 64bit integer type and be C89 standard compliant Right. And as far as I know, nobody has claimed it is. Actually, thinking a bit more, isn't it perfectly OK for a fully C89 compliant compiler to provide whatever non-standard stuff it likes as long as the identifiers

Re: Memory leaks

2011-02-09 Thread Tor Lillqvist
It's just a question of definition. Many people, me included, don't consider once-only allocations of memory that stays accessible and aren't freed before the program exits leaks. GTK+ and GLib isn't the kind of libraries that you could load dynamically, use a bit, and then unload, and expect to

Re: Memory leaks

2011-02-09 Thread Tor Lillqvist
Each time you call _CrtDumpMemoryLeaks() it dumps all the memory that's been allocated but not yet released. So it doesn't take into consideration at all whether the memory in question is / can be used or not, i.e. whether there is any pointer to it in local variables, etc. All memory that has

Re: gtk 2.16.6 for win32 on gnome.org

2011-02-09 Thread Tor Lillqvist
Am I right in thinking that the engines that used to live in separate dlls (libpixmap and libwimp) are now folded into one of the main dlls -- presumably libgtk-win32-2.0-0.dll? No, that would not work (without changes to the engine-loading code to look for built-in engines). They are where

Re: gnome-canvas-marshal.c/.h

2011-01-17 Thread Tor Lillqvist
I managed to track down the missing files and libgnomecanvas is now compiling just fine.  I will need to build libgail though. Isn't gail part of GTK+ nowadays? At least, in GTK+ a libgailutil is built, and a gail.pc and include/gail-1.0 installed. (Yes, it might be that the VS project files

Re: libgdk_pixbuf, VC++ and TIFF files.

2010-11-30 Thread Tor Lillqvist
I suppose it's entirely possible that this problem might be fixed in some other version of libTIFF.  Is there a recommended version of libTIFF that I could try with libgdk_pixbuf instead of the FreeImage version? I guess the newest libtiff in

Re: libgdk-pixbuf reciprocal dependency - what am I not understanding?

2010-11-21 Thread Tor Lillqvist
I'm trying to build libgdk-pixbuf from source (actually, I'm building the whole of libgtk-win32 but let's concentrate on libgdk-pixbuf, since that's where my current confusion lies). What version of GTK+? In the current version of GTK+, 2.22.x, gdk-pixbuf has been split out into a separate

Re: GLib without ipv6?

2010-11-19 Thread Tor Lillqvist
Have you heard the phrase patches welcome? --tml ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: GLib without ipv6?

2010-11-19 Thread Tor Lillqvist
I'm not sure that's true in this case. Maybe not, but if he just does the work and attaches it to a bug or otherwise makes it public, it might help the next person who has the same idea. --tml ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: Replacing gdk_display_open(char*)

2010-11-15 Thread Tor Lillqvist
* BTW, are there any plans to add multihead on other platforms? Not for Windows, at least. I am not even sure what multihead would mean on Windows. Note that I am not talking about mutiple monitors in a user session's Windows desktop; that works mostly fine in GTK+ since a long time. Would the

Re: Strange display problem with gtk-win32 and VC++

2010-11-07 Thread Tor Lillqvist
no one ever wants to volunteer to help. Actually, that is not true. For instance, the ms-windows theme engine is now effectively maintained once again and compiles and maybe even works in gtk+ master. And for bulding the GTK+ stack for Windows (32- and 64-bit), I very much plan to stop doing it

Re: Strange display problem with gtk-win32 and VC++

2010-11-07 Thread Tor Lillqvist
What about joining forces and make one unique official repository for packages on Windows ? You mean, like there is one unique official Linux distribution? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: gtk 2 or 3

2010-11-07 Thread Tor Lillqvist
Would this approach work? It would have to be a multiple windowe application, of course. I very much doubt it. None of the code in gdk/win32 is written with anything such in mind. And whether such an application would then be portable to X11 I have no idea. --tml

Re: gtk 2 or 3

2010-11-04 Thread Tor Lillqvist
If I may ask, what is the main technical problem (deeper explanation) with using GTK+ from multiple threads? On Windows, the problem is that Windows GDI, being a local windowing system with a quite tight coupling to the client code executing on the same machine, is very much thread-aware.

Re: gtk 2 or 3

2010-11-03 Thread Tor Lillqvist
This is sort of off topic, but since the stability of GTK on Windows was a subject of this thread, I'd like to ask about GIMP? How come GIMP is completely stable on WIndows? Well, it is stable in the sense that it doesn't crash (knock on wood) in normal use. I didn't mean there would be

Re: gtk 2 or 3

2010-10-28 Thread Tor Lillqvist
Right now, GTK 3 is a moving target and developing for it is likely to be quite frustrating. So I second the when it is stable point. And of course, in case you choose GTK+ because of the cross-platform support, there is also the whenever it eventually maybe works reliably on Windows point.

Re: gtk 2 or 3

2010-10-28 Thread Tor Lillqvist
Sorry but this point is not clear enough to me. Do you mean that GTK+ is not stable enough on Windows (XP,Vista,7)?! Well, that depends on your definition of stable. It depends much on what the GTK+-using program wants to do, and whether continuous building and testing of the program has been

Re: gtk 2 or 3

2010-10-28 Thread Tor Lillqvist
It's impressive to see someone promoting tech from the other camp :-) Why not? It isn't like it would have any impact on my personal happiness/income/status/reputation if people use Qt and not GTK+ for cross-platform apps. Also, I am not employed by anybody to work on GTK+ so I don't see saying

Re: Runtime errors with testglib.exe (Win32 build)

2010-10-07 Thread Tor Lillqvist
Having recently built it under Win32 (using Visual C++) I decided to run the test application (testglib.exe).  Everything runs fine until I get to the File Functions test, at which point I keep getting debug assertions. That is a problem in the C library then, that it generates debug

Re: GTK+ and my port of AMP for Windows

2010-10-06 Thread Tor Lillqvist
The window is created and I can interact without problem with it. Now, here you are another little test programme that does not work: It *does* work for me, both when running against GTK+ 2.20.1 and 2.22.0. (The official binaries from www.gtk.org, actually hosted on ftp.gnome.org.)  window =

Re: gdk_draw_image with alpha compositing on X?

2010-10-02 Thread Tor Lillqvist
I'm calling gdk_draw_image with a 32-bit per pixel image with some pixels having alpha=0 and some with alpha=255, and the transparent pixels come through as black (not surprisingly). What is the correct was to get that on to the screen? (for Win32 and X) For Windows, you can't do any

Re: Getting native colors in GTK/GDK?

2010-09-22 Thread Tor Lillqvist
(Sending a copy also to the gtk-app-devel-list. Please keep discussions that start on a public mailing list public unless you specifically have private personal or confidential matters to discuss in some messages.). I just found libwimp.dll off in some subfolder, but I don't think I added that

Re: Getting native colors in GTK/GDK?

2010-09-21 Thread Tor Lillqvist
Some such engines have been written, or attempted (GTK-Wimp, GTK-Qt theme engine, ...) Note that what you call GTK-Wimp is actually called the MS-Windows theme and has been included in GTK+ itself for quite some time already. (Just the actual theme engine DLL is called wimp. The theme and the

Re: Re: Colored Statusbar, ugly grip under win32

2010-08-30 Thread Tor Lillqvist
 the resize grip gets ugly between 2.18 and 2.20 on windows system. You need to distill the problem down to a minimal but complete sample program and file a bug at bugzilla.gnome.org against product:gtk+, component:win32, and attach the sample program (as a single source file). --tml

Re: Gtk-OSX (was: Website proposal for usability)

2010-08-30 Thread Tor Lillqvist
It has certainly been explained that that is the situation on Windows, and I fully accept it. It's less clear that it should be the situation on OS X, with its *nix-type substructure. You have it backwards. It was from the GTK-on-OS-X people (well, at least those that I have heard from) that

Re: Colored Statusbar, ugly grip under win32

2010-08-26 Thread Tor Lillqvist
Wait a minute, now I am confused. I thought you said that the look of the resize grip had changed between two GTK+ versions on Windows? Can you specify these two exact versions, that you used on Windows, or not? Did you use the same theme (or no theme at all) with both GTK+ versions? --tml

Re: Colored Statusbar, ugly grip under win32

2010-08-25 Thread Tor Lillqvist
Version on win32 (ugli resize grip): And the versions with the non-ugly resize grip? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Colored Statusbar, ugly grip under win32

2010-08-23 Thread Tor Lillqvist
Since the new 2.20 Win32 Bundle, That doesn't say much. Instead give specific GTK+ version numbers between which you see different behaviour. (If you have been using the bundles, the exact version and build information of the components included can be found in the components.lst file in thw

Re: How can I render long lines

2010-08-20 Thread Tor Lillqvist
The short answer to the question in the subject is: You don't. Is it possible to write a text editor which uses GTK+ and shows correctly the file which is created by the following code: [ code that writes some hundreds of thousands printable ASCII characters without newlines to a file ]

Re: How to check runtime DLL version

2010-08-10 Thread Tor Lillqvist
I'm wondering how to check the runtime version of the (glib and gtk for example) DLLs, that the application is linking to. You mean check at run-time? Using the API provided for that, if any. For GLib, use the glib_major_version, glib_minor_version and glib_micro_version variables (which are

Re: GDK_NATIVE_WINDOWS not working under Windows

2010-08-01 Thread Tor Lillqvist
Currently, if you want a GTK+ on Windows where more complex things like OpenGL might work, to some degree, you should probably use GTK+ 2.16. The situation might improve in the future, or not. --tml ___ gtk-devel-list mailing list

Re: Text editing and UTF-8 conversion

2010-07-16 Thread Tor Lillqvist
Is there anything that I could do differently to increase the loading speed or is this just something I need to just deal with and move on to the next item on the list? You need to find out what exactly it is that is taking a lot of time, and experiment with different ways to do that. I.e.,

Re: Screen resolution

2010-07-09 Thread Tor Lillqvist
Does gtk+ have an API call for obtaining the user's screen resolution (in pixels) ? (Please, avoid the terms screen or display, as they have specific meanings in X11 and gtk+ which don't match what you probably mean, which I assume is an individual monitor of potentially several that are part

Re: Screen resolution

2010-07-09 Thread Tor Lillqvist
Ah, maybe I've misunderstood  is that in fact what gdk_screen_get_monitor_geometry() will tell me? Yes. Also note that there can be holes in the screen that no monitor covers. --tml ___ gtk-app-devel-list mailing list

Re: Anyone for CMake?

2010-06-28 Thread Tor Lillqvist
I very much doubt if anybody who actually is doing the work, i.e. maintaining the gtk+ stack, has any interest at all in switching to CMake. So this discussion is mostly pointless. (And anyway, this discussion is on the wrong mailing list; gtk-devel-list would have been the relevant one.)

Re: win32 win64 Gtk+ apt repo?

2010-06-24 Thread Tor Lillqvist
Does anyone know of any apt repositories out there that already do this for things like Gtk+ before we start making our own. Not what you are easking for, but in the openSUSE Build Service there is plenty of GTK+ and GNOME stuff (including, for instance, Evolution) cross-compiled for both for

Re: cygwin gtk+ eclipse on windows Gtk-WARNING cannot open display

2010-06-21 Thread Tor Lillqvist
Hello, i installed cygwin, gtk+(available with cygwin) and eclipse on Windows xp. Gtk-WARNING **: cannot open display: Are you aware that the GTK+ for Cygwin is built with the X11 backend, i.e. software that uses it requires an X server (also know as display)? (Either running on the same

Re: disabling GTK+ features to shrink GTK+

2010-06-15 Thread Tor Lillqvist
Wouldn't it be possible to link gtk+ statically and rely on the linker to drop all the unused symbols? Not out-of-the-box currently, but working on that would be a better idea, and enabling statically building the GTK+ stack would have a better chance of getting upstream. --tml

Re: disabling GTK+ features to shrink GTK+

2010-06-15 Thread Tor Lillqvist
Why do they have little chance of going upstream? Because the maintainer says so? --tml ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: disabling GTK+ features to shrink GTK+

2010-06-15 Thread Tor Lillqvist
Is it good enough that the maintainer doesn't even give a reason? It is good enough for me. I admire a maintainer that doesn't let everything turn into bikeshedding. Did I miss something? The possibility to maintain patches for the features you are missing in your own distro or whatever?

Re: disabling GTK+ features to shrink GTK+

2010-06-15 Thread Tor Lillqvist
You can already build GTK+ statically, can't you? Or doesn't it work on Windows? Well, not only GTK+, but presumably then also everything else under it in the stack, otherwise it would be a rather pointless exercise, wouldn't it? I am fairly sure it doesn't work out-of-the-box. I have never

Re: cross compiling GTK+ on Linux for Windows

2010-06-14 Thread Tor Lillqvist
How are the binaries in http://www.gtk.org/download-windows.html built? Currently, locally on Windows, using MinGW and MSYS. Look in the developer zip files for src/tml/packaging/*.{sh,log} which are the shell scripts used to build the packages, and the output from those scripts. But, I build

Re: VC9 build

2010-06-13 Thread Tor Lillqvist
This morning, everything worked fine until the build got to the gio branch - which failed, due to unistd.h and sys/wait.h not being present. There was a problem in the VS project files in 224.1, some source file that should be built only on Unix was included by mistak. Simply drop the source

Re: Global GList in gtk+ application

2010-06-12 Thread Tor Lillqvist
If you want to show code, at least show something that compiles and exhibits your problem (if any), i.e. a minimal but complete sample. Anyway, I don't see what your problem has to do with GTK+. --tml ___ gtk-app-devel-list mailing list

Re: VC9 build

2010-06-11 Thread Tor Lillqvist
I found the VC++ .sln and .vcproj files, loaded the solution and just tried to compile one of the modules in the glib branch.  However, every module fails to compile because config.h is missing. I assume you are talking about GLib 2.24.1, from a tarball? There is a Pre-Build Event for the

Re: GKeyFile memory leak on Windows ?

2010-06-10 Thread Tor Lillqvist
Fixed now in git, bug #621168. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Good view on windows

2010-05-25 Thread Tor Lillqvist
Is it possible to run the application on Windows without installing GTK+ redistributable package? I guess yes. You guess wrong, I'd say. You should bundle the GTK+ runtime, and any other 3rd-party libraries needed, with your application. (As part of its installer ideally.) (I don't know why

Re: Good view on windows

2010-05-25 Thread Tor Lillqvist
I have meant any theme which improve the visual effects. Could you give me more information how to use 'wimp' or 'pixmap'? wimp is the internal slightly silly name for the theme engine that implements the ms-windows theme. So you just need to have a file etc/gtk-2.0/gtkrc in your gtk+

Re: Is GTK available on windows 7 ??

2010-05-24 Thread Tor Lillqvist
Is GTK available on windows 7 ?? No separate version or build of GTK+ is needed for Windows 7. The same Windows GTK+ binaries work on XP, Vista and 7. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Setting the font for Gtk::Button

2010-05-08 Thread Tor Lillqvist
The msvcrt.dll runtime can hardly be said to be obsolete when a new version is included with each version of Windows,can it? Also, it is included even as a 64-bit version in 64-bit Windows. There is no MSVC6 that would generate 64-bit code, soI don't see how it could be said to be specific to

Re: Setting the font for Gtk::Button

2010-05-08 Thread Tor Lillqvist
 Perhaps 'deprecated' is a better description than obsolete.  msvcrt.dll is provided nowadays purely and simply for backwards compatibility with older apps Why does even the 64-bit notepad.exe, to pick an example, then link to the 64-bit msvcrt.dll? Or the 64-bit ws2_32.dll, to pick another

Re: drag'n'drop with gtk-win32

2010-04-30 Thread Tor Lillqvist
Under Linux, the app supports dragging and dropping of certain audio files (for example, WAV files).  So, using Nautilus, the user can select a WAV file and drop it into one of several containers within the app.  The WAV file is then effectively imported for use in the app. That kind of

Re: Callbacks when glade file is loaded using a dynamic library

2010-04-23 Thread Tor Lillqvist
I forgot to mention that I am using GTK Builder. From some googling, i found that g_module_lookup() is in libglade. Am I correct? No. Google harder. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Callbacks when glade file is loaded using a dynamic library

2010-04-23 Thread Tor Lillqvist
libraries. Am I correct to assume that g_module_symbol is the replacement for g_module_lookup()? I think g_module_lookup() has never existed except in some comment where somebody mistyped it when they meant g_module_symbol()... --tml ___

Re: how to make my window stays on top when I'm playing fullscreen game?

2010-04-17 Thread Tor Lillqvist
But I'm using windows,so I think maybe I should use windows api to achieve it. Could well be. Trying to use GTK+ for any exotic window management tasks on Windows is likely to not work as intended because of bugs in GTK+ on Windows. --tml ___

Re: GDK Keycodes

2010-04-16 Thread Tor Lillqvist
1. Why shift modifies keyval value if it's included as a flag in state anyway? Because it is. If it wasn't, somebody would ask why it isn't. If you think GDK was originally designed by a committee, deliberating for years, determined to design the best imagineable API with no inconsistencies at

Re: GTK 2.20 for Windows

2010-04-11 Thread Tor Lillqvist
I guess one last question on this, can I expect that my program will either work or crash on start up if the dependencies are or are not there? Or is there the possibility that it may crash further into its process if it reaches a point where it does not have access to the functions it

Re: [PATCH] GKeyFile: Switch gint to gint64

2010-04-02 Thread Tor Lillqvist
You could also add separate get/set functions for longlong or int64, That is obviously the correct way to do it. Your patch would break API. You patch uses strtoll() unconditionally, and you use %lld to printf gint64 values. Neither is portable. Use g_ascii_strtoll() and G_GINT64_FORMAT. --tml

Re: gthread: how many cores do I have?

2010-04-02 Thread Tor Lillqvist
Actually, he got the naming right. Even single-core cpus have cores... Except that of course back when multiple-core chips were nonexistent, nobody used the term core. So that isn't really a convincing argument. Often, processors is understood to be sockets. So? That doesn't mean it's

Re: gthread: how many cores do I have?

2010-04-02 Thread Tor Lillqvist
It is traditional term, and it is ambiguous these days. CoreDuo is Intel *processor*. So what? Intel might call it a processor today, a flux capacitor tomorrow. It isn't like they would be known to choose one name for something and stay with it. Is Intel going to change the terminology used

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: gthread: how many cores do I have?

2010-03-15 Thread Tor Lillqvist
I'd my program (a threaded image processing system based on gthread) to be able to find out how many cores the host machine has. First a terminological nit: Don't confuse cores with processors. There were machines with a high degree of symmetrical multiprocessing (i.e. lots of processors) a

Re: gthread: how many cores do I have?

2010-03-15 Thread Tor Lillqvist
Why? Isn't the interesting metric the number of cores, rather than the number of fully-independent CPUs? Depends on what you mean with CPU. You seem to use the terminology CPU == chip? Anyway, I didn't suggest using CPU but processor. Existing platform APIs traditionally use the term

Re: Client Side windows in GDK (GTK+-2.18.xxx)

2010-03-11 Thread Tor Lillqvist
Could some one help me on this how to proceed further? Read the code, understand how it works, debug, fix problems, submit patches in bugzilla? Please understand that the directdb stuff in gtk+ is very close to unmaintained, as far as I know. --tml

Re: Connecting GTK application to a database

2010-02-23 Thread Tor Lillqvist
Can somebody help me with connecting a gtk interface with a backend database, say, Posgres? How does one embed SQL queries in the C code.? GTK+ has nothing to do with that. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: g_spawn_async_with_pipes on windows

2010-02-11 Thread Tor Lillqvist
is there any reason to believe that the glib functions are not working correctly? Your guess is as good as mine? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_spawn_async_with_pipes on windows

2010-02-10 Thread Tor Lillqvist
g_spawn_async_with_pipes() to launch an other executable (firefox in this case). Do you expect to provide input to Firefox's stdin, or get output from its stdout, through the pipes then? (That would be a bit strange for a GUI app like a web browser, wouldn't it?) If not, instead of g_spawn_*,

Re: How to compile tictactoe widget example in tutorial

2010-02-07 Thread Tor Lillqvist
You need to compile and link *both* the .c files into *one* executable. Also, please don't get into the habit of using pkg-config --cflags --libs, even if it happens to work most of the time on Linux. Specify C compiler flags and libraries separately in the appropriate locations on the command

Re: help on disabling file-chooser

2010-01-31 Thread Tor Lillqvist
Sounds like an exercise in futility. If you are doing this to prevent people from saving something because of commercial/security/whatever interests, and if the users will have a real interest in working around the limitations you try to impose, they will. And there is nothing you can do to stop

Re: GLib 2.22.4 released

2010-01-17 Thread Tor Lillqvist
OK, fixed now as well as it can be; i.e. if there is wspiapi.h when building GLib, it is used. there's a 2.22.4 build in the binaries/win32/glib/2.22 directory on ftp.gnome.org.  However, I've tried using this in my app package and I'm getting reports from users on win2k that it doesn't

Re: Valgrind and GTK

2010-01-03 Thread Tor Lillqvist
I think much of this boils down to the definition of leak. My impression is that GTK+ and GLib developers don't consider as leaks once-only allocations that either indeed truly are unreachable almost right away after being used (as long as they are small) (but of course, if possible one should

Re: how to set language for non-unicode text

2009-12-29 Thread Tor Lillqvist
Looks like GTK indeed encoded the string in Unicode, although the original string was not in Unicode. What the string and theoriginal string? Where did they come from? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: how to set language for non-unicode text

2009-12-28 Thread Tor Lillqvist
I wrote my first linux GUI app using GTK+, which seems to be a very nice tool. Well, GTK+ is not a tool but a library, also called a tooolkit, so I wonder whether what you actually have been using some higher level GUI application or toolt to write code that uses GTK+? Anyway, let's assume that

Re: g_debug as bug fixer?

2009-12-21 Thread Tor Lillqvist
Any ideas? Most likely you cause a heap corruption in your code, which then can cause seemingly random behaviour later in the program's execution. (For instance such randomness that adding some g_debug() calls seem to fix your problem.) Use valgrind. --tml

Re: GTK on Windows 2000 pro, sp4

2009-12-01 Thread Tor Lillqvist
You should probably open[1] a bug report about this if you wish to see it fixed. Sometimes Tor visits this list, but it's not a 100% guarantee. I do read this list, and did notice the original mail, but as I couldn't do anything right then for it, and the reason to the problem seemed obvious, I

Re: GIO will link with -pthread soon

2009-11-20 Thread Tor Lillqvist
We really need to get our story together here. Either we do our very best to handle late g_thread_init(), or we should fail spectactularly. Agree 100%. My own humble opinion is that even GLib (not just GIO) should link to -lpthread and work as if g_thread_init(NULL) would have been implicitly

Re: Using GTK+ in windows DLL

2009-11-15 Thread Tor Lillqvist
- Initialize GTK+: what should I use for the arguments of the gtk_init_check; I do not have a main in the DLL Just pass and empty argument vector then? - Cleanup GTK+: how to free resources; I cannot exit the application That is not really possible, sorry. There will always be some

Re: running win32 gtk+ program on one computer and displaying graphics on another ?

2009-11-13 Thread Tor Lillqvist
Is it possible to do something similar with the Windows version of GTK+? Yes and no. Note that there is nothing GTK+-specific in this. Read up on Remote Desktop Services, earlier known as Terminal Services (or Terminal Server). See http://en.wikipedia.org/wiki/Remote_Desktop_Services It is

Re: code work wrong when i put it in gtk+ application

2009-11-11 Thread Tor Lillqvist
The radix is locale dependent.  You will need to set a C locale. To be more specific, call setlocale(LC_NUMERIC, C) GTK+ calls setlocale(LC_ALL, ) for you automatically in gtk_init() unless you call gtk_disable_setlocale() first. Read your C library's documentation to learn about setlocale().

Re: GVariant support for Unix fds (Was Re: GDBus/GVariant plans for next GLib release)

2009-11-11 Thread Tor Lillqvist
 I'm not sure that it will ever support passing win32 handles in the same way... Nah, I assume it won't be necessary. To the extent it is possible to pass Win32 HANDLES from one process to another, it uses a totally different mechanism: The HANDLE is duplicated already in the source process and

Re: GVariant support for Unix fds (Was Re: GDBus/GVariant plans for next GLib release)

2009-11-01 Thread Tor Lillqvist
btw: I don't know if passing HANDLE on Windows is supported (and I would guess not). Sure it is. DuplicateHandle() can be used for this. I.e. a process A that has the required access right (PROCESS_DUP_HANDLE) to two processes U and V can take a HANDLE value valid in source process U and

Re: Windows g_socket_create_source problem

2009-10-20 Thread Tor Lillqvist
I think I am on the right track: I'm creating a Lua Socket, getting the file descriptor (which is a normal fd/SOCKET), create a new GSocket using g_socket_create_source, and attaching a callback that should fire on data available on the socket. Please note that the GSocket API is quite new,

Re: [semi-OT] gdb backtrace on windows

2009-10-19 Thread Tor Lillqvist
my problem is that when my program crash i get from the backtrace only these two rows #0  0x77c035e4 in ?? () #1  0x in ?? () what am I doing wrong? Nothing, probably, that would cause this unuseful backtrace, you just have bad luck and the program crashes in an unfortunate context

Re: GDBus/GVariant plans for next GLib release

2009-10-15 Thread Tor Lillqvist
 - The libdbus-1 on Win32 / OS X story. Gah.   So either we a) restrict this to UNIX (put headers in gio-unix-2.0)   or; b) we just tell people they need to use e.g. WinDBus on Win32, There is a relatively new effort to clear up the dbus situation on Windows situation, dbus4win, see

Re: Gimp/GTK+ unicode on windows

2009-09-29 Thread Tor Lillqvist
(This discussion should have been on the gtk-devel-list in the first place and not in personal mail to me. I am replying there. Please let's continue there.) The thing is that sinhala differs miles away from English. Of course I know that. And Microsoft knows it too. As far as I can see they

Re: GTK+ 2.16.6 released

2009-09-10 Thread Tor Lillqvist
Any chance or problem for the windows binaries on the website/ftp? Sorry, I had forgotten to upload them. Should be there soonish. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: why do constructors return GtkWidget?

2009-09-09 Thread Tor Lillqvist
I think that this is from times where people used to build GUIs in the code... When they were writing all the container embedding and all, in C, building their dialogs. Those times are still very much here. For instance in the application that gave GTK+ the G in its name. --tml

Re: patches to make gtk head build on win32 with MSVC

2009-08-26 Thread Tor Lillqvist
But since cairo has a small bug that prevents any win32 cairo based program running, Hmm, interesting. You probably should take that up on the cairo list. I tested the bug 552678, it's not solved by my patch. Fortunately we now know what will solve it (see the latest bug comments and

Re: patches to make gtk head build on win32 with MSVC

2009-08-20 Thread Tor Lillqvist
I spent a day on building gtk head on win32 by utilizing OAH (https://launchpad.net/oah) and came up with these small patches. Thanks. I went through them and they looked fine. I wonder if the patch to io-gdip-utils.c could fix the problem with the GDI+ -based pixbuf loaders

Re: GTK application hangs in Windows and Wine, works fine in Linux

2009-08-15 Thread Tor Lillqvist
it's open source and the URL is here if you want to see the source code perhaps : http://houbysoft.com/cc/ The download of fhe source code is hidden behind some silly enforced 30 second wait. If you want somebody to fix your problems in code, at least you could make it easier to see the source

Re: scalable icons Windows

2009-08-11 Thread Tor Lillqvist
Any ideas how to make this work? Install the svg pixbuf loader (and its dependencies), and edit the gdk-pixbuf.loaders file (or use gdk-pixbuf-query-loaders). See http://ftp.gnome.org/pub/GNOME/binaries/win32/librsvg/2.26/ for Windows binaries for the svg pixbuf loader. You will have to trawl

Re: scalable icons Windows

2009-08-11 Thread Tor Lillqvist
Sigh, it was stupid of me to reply telling you to do what you already told you had done. /me blushes and tries to be more careful in the future. Anyway, good that you got it working. Could you come up with some short but to-the-point Windows-specific instructions that could be included in some

Re: Makeing librsvg work (bizp2.dll missing)

2009-08-02 Thread Tor Lillqvist
Bundling GTK+ with your app is not an unnecessary hardship for the developer since one has to build against a GTK+ environment anyway that one had to assemble. Yeah, but a clarification: the GTK+ environment one *builds* against is of course a *development* one, not a *runtime* one. They don't

Re: Makeing librsvg work (bizp2.dll missing)

2009-08-02 Thread Tor Lillqvist
BTW, check out http://afuera.me.uk/jhbuild-windows/ where he says: My big plan: write a versioned, dependency-tracking binary package manager for Windows (I am not endorsing nor criticising such an effort or its relation to jhbuild. I am not using jhbuild myself, and have not really felt the

Re: Can't localize GTK+ itself on Windows XP

2009-08-01 Thread Tor Lillqvist
The mistake was I didn't notice py2exe didn't automatically package int.dll, so now I include it manually. Ah OK. intl.dll is loaded at run-time, if available. I.e., if an application doesn't have localisation for its own messages, it makes little sense to ship it with GTK+ localisation then

  1   2   3   4   5   6   >