Re: Setting the font for Gtk::Button

2010-05-06 Thread John Emmas
On 6 May 2010, at 10:07, Murray Cumming wrote: You have to set the font of the label in the button, not the font of the button. I generally think this is far too difficult. I have to admit, I would never have guessed that! Thanks for the tip, Murray. I'll try it out, later.

Re: Setting the font for Gtk::Button

2010-05-06 Thread John Emmas
On 6 May 2010, at 10:07, Murray Cumming wrote: You have to set the font of the label in the button, not the font of the button. I generally think this is far too difficult. I have to admit, I would never have guessed that! Thanks for the tip, Murray. I'll try it out, later. Hmmm

Re: Setting the font for Gtk::Button

2010-05-06 Thread John Emmas
- Original Message - From: Tadej Borovšak tadeb...@gmail.com My advice to you would be to create label manually and then simply pack it into empty GtkButton using gtk_container_add(). I created a derived class that uses an explicit label but strangely, it didn't work. Here's my

Re: Setting the font for Gtk::Button

2010-05-06 Thread John Emmas
- Original Message - From: John Emmas And that's it. The button works exactly like it did before. The correct text gets displayed. FontableTextButton::modify_font() gets called at the appropriate time. But the label's font remains the stubbornly the same :-( Correction

Re: Setting the font for Gtk::Button

2010-05-06 Thread John Emmas
- Original Message - From: John Emmas It's possible that these might be 'C runtime' issues - although it'd be strange for it to work with some widgets but not others. However, I'll try compiling with VC++6 and see if that makes any difference. Because of template issues with VC++6

Re: Setting the font for Gtk::Button

2010-05-06 Thread John Emmas
- Original Message - From: John Emmas The outcome is that the VC++6 build seems to work exactly as expected, so it looks like this could well be a C runtime issue after all :-( I guess it might be worth asking this question here My understanding is that gtk-win32 and its

Re: libgnomecanvas

2010-05-03 Thread John Emmas
On 3 May 2010, at 03:05, Javier Jardón wrote: note that GnomeCanvas is deprecated, maybe you want to use GooCanvas [1] instead. Thanks for the suggestion Javier but this is a pre-existing project so I'm pretty much stuck with the same canvas that everyone else is using. No matter what

Re: libgnomecanvas

2010-05-02 Thread John Emmas
On 1 May 2010, at 19:18, John Emmas wrote: Is this an appropriate forum for asking questions about libgnomecanvas or does it have its own separate mailing list? ___ Or alternatively, would gtk-l...@gnome.org be a better place? Basically I'm

libgnomecanvas

2010-05-01 Thread John Emmas
Is this an appropriate forum for asking questions about libgnomecanvas or does it have its own separate mailing list? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

drag'n'drop with gtk-win32

2010-04-30 Thread John Emmas
I was going to post this on the gtk-win32 list but I remembered that it only deals with certain specific issues, such as packaging and distribution problems, so I hope someone here will be able to help. I'm in the process of converting an app that was originally written for Linux and uses

Re: drag'n'drop with gtk-win32

2010-04-30 Thread John Emmas
On 30 Apr 2010, at 13:09, Tor Lillqvist wrote: Before I spend too much time tracking down the problem, Do you actually have a problem? Have you tested dragging-and-dropping files from Explorer? Thanks Tor - yes I have tested it and it doesn't work but I haven't looked far enough into it

Re: gtk_list_store from XML UI not storing strings

2010-04-26 Thread John Emmas
Just testing Please forgive me hi-jacking this thread. I'm testing to see if my post gets through. During the past week, three of my posts have been mysteriously lost when I tried to ask questions on this (and other) gtk mailing lists. Just wondering if it works if I reply to an

Re: gtk on win32

2010-03-30 Thread John Emmas
---Original Message--- From: Jorge Opaso Pazos Date: 29/03/2010 19:58:10 Can I use GTK and all its dependencies to develop Windows applications at production level? The simple answer is Yes. I've spent nearly 20 years developing Windows apps the more conventional way (i.e. using

Re: gtk on win32

2010-03-30 Thread John Emmas
---Original Message--- From: LRN Date: 30/03/2010 08:54:19 Make no mistake though, it's conceptually very different from MFC and you might find it frustrating at first. It's conceptually superior. Well, that's a matter of opinion but in general I think I'd agree - except to say

Re: gtk on win32

2010-03-30 Thread John Emmas
Several people already have responded to your question. You must have a configuration problem if you're not seeing the responses. John - Original Message - From: Jorge Opaso Pazos jop...@autologic.cl To: gtk-list@gnome.org Sent: 29 March 2010 18:45 Subject: gtk on win32 Hello

GTimers - do they need initialization ?

2010-03-17 Thread John Emmas
The following code is giving me strange results when I build it using MSVC++ and link to the binaries for glib-win32 (I've tried VC++8 and also falling back to VC++6) #include glib/gtimer.h int main (int argc, char* argv[]) { gulong microseconds; int count; GTimer* pTimer = g_timer_new ();

Re: GTimers - do they need initialization ?

2010-03-17 Thread John Emmas
Doh! I mis-read the documentation. Thanks guys! ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
- Original Message - From: Tor Lillqvist t...@iki.fi If you post sample code, post a *complete* (but minimal) compilable (single source file) program. The problem is that I don't know if it's necessary to initialise gtk as a prerequisite for using glib. Assuming that's NOT a

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
Many thanks for the quick response Tor. GIOChannel* pChan = g_io_channel_win32_new_fd (hPipes[READ]); // The above call always returns a NULL pointer No it does not, for me. Not when compiled with MinGW, not when compiled with MSVC6. You did use -MD (use msvcrt.dll) I hope? If you don't use

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
- Original Message - From: Tor Lillqvist t...@iki.fi 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

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
Agh!! I was kidding myself. The Debug build doesn't work and nor does the VC8 build. Prior to messing around with the DLLs I'd changed this line in my original code:- GIOChannel* pChan = g_io_channel_win32_new_fd (hPipes[READ]); and temporarily swapped it this, to see what would happen

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
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? Or would that then screw things up for MinGW users? The reason I ask is that other open source libraries seem to

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
Or alternatively, would it help if glib had its own implementation of 'pipe()' etc, to go along with g_open(), g_fopen() etc? I couldn't find any such implementation (just making a cursory search) but presumably that would also solve the problem without impacting on MinGW usage?? John

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
- Original Message - From: Heiko Lechner heiko.lech...@ruhr-uni-bochum.de Am 03.03.2010 15:34, schrieb Tor Lillqvist: Well, I don't have such plans, it takes enough time to provide builds of the stack built with MinGW, I really honor that, because I tried that myself and failed...

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
- Original Message - From: 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. Well FWIW, Im

Re: g_io_channel_win32_new_fd()

2010-03-03 Thread John Emmas
To be honest, I don't think that's a good analogy. A better analogy would be a library that has a big supply of books but you can only take them out in a digitized form, such as on a DVD. But the library hasn't digitized many books - so users must be prepared to do that themselves. However,

g_io_channel_win32_new_fd()

2010-03-02 Thread John Emmas
I posted this question on the gtk-win32 list but it no longer seems to be providing general support for gtk-win32. Basically, I'm trying to use the function g_io_channel_win32_new_fd() with a view (eventually) of using it for pipe io with Win32. The function seems always to return a NULL

How do I unsubscribe??

2009-04-07 Thread John Emmas
How do I unsubscribe from this list? I went to this web page:- http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list which contains a section where new users can subscribe. However, that section doesn't allow me to unsubscribe. Further down the page there's an option for unsubscribing -

Why is there no gtk_window_free() ?

2009-03-23 Thread John Emmas
Does gtk_window_new() allocate any system memory? I've always assumed so - and yet whenever I see examples of gtk_window_new() in use, the returned pointer is never freed anywhere, which suggests that no memory was ever allocated. Which is right? Thanks, John

Re: Why is there no gtk_window_free() ?

2009-03-23 Thread John Emmas
Thanks guys, I've been following a (pretty well respected) book about GTK development but it only seems to use gtk_widget_destroy() for dialog boxes. For example, a dialog box might get created using gtk_dialog_new_with_buttons() and eventually gets destroyed with gtk_widget_destroy(). But

Re: Why is there no gtk_window_free() ?

2009-03-23 Thread John Emmas
- Original Message - From: Tadej Borovšak I'm no expert at those things, but during my coding with gtk I learned some things about memory management that I described in this forum post. You may find it useful quick-start introduction into official gobject and gtk documentation.

Re: setuid / setgid

2009-03-02 Thread John Emmas
Hi Dave, That wiki page filled in the missing gaps and I've now managed to fix the problem. Thanks for your help. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

setuid / setgid

2009-03-01 Thread John Emmas
I hope this is the right list to post this query. An application that I've built many times before is now suddenly refusing to run. I see an error message saying:- Gtk-WARNING: This process is currently running setuid or setgid This is not a supported use of GTK+. You must create a helper

g_type_query in gtk-win32

2009-02-05 Thread John Emmas
I'm trying to port a program which previously used gtk-x11 so that it will work with gtk-win32. For the past day or two I've had a very strange problem with the program crashing unexpectedly. Finally I tracked it down to a problem with the function call g_type_query() Here's a very simple

Re: g_type_query in gtk-win32

2009-02-05 Thread John Emmas
Oops, sorry Tor - I guess I should have copied and pasted instead of typing this out manually. In fact I had carried out the initialisation but slightly differently. This is how the real code looked (copied and pasted, this time) #include libgnomecanvas/gnome-canvas.h int main (int argc, char

Re: g_type_query in gtk-win32

2009-02-05 Thread John Emmas
I think I might have figured this out (it's just a theory at the moment though). Here's the page that I used for installing gtk-win32:- http://www.gtk.org/download-windows.html I installed most of the libraries shown except for a few that I don't have installed anyway, like libexpat. However,

Re: g_type_query in gtk-win32

2009-02-05 Thread John Emmas
Thanks again, Tor. I seem to be making progress but after installing libgnomecanvas I've hit another brick wall. When I try to run that same program, Windows tells me that it cannot proceed because intl.dll isn't installed (note: intl.dll - not libintl.dll). Sorry to be a pest but I'm not sure

Getting started with gdk-pixbuf (gtk-win32)

2009-02-03 Thread John Emmas
Hi there, I've been using GTK under Linux for a year or so - and more recently, under Cygwin - so I have a passable knowledge of GTK but I'm not an expert. Recently I decided to take a look at the win32 backend for GTK which I downloaded last week. For ease of use I'm using Cygwin's gcc

Re: Getting started with gdk-pixbuf (gtk-win32)

2009-02-03 Thread John Emmas
- Original Message - From: Tor Lillqvist Subject: Re: Getting started with gdk-pixbuf (gtk-win32) So, as was mentioned on the mingw-users list, it is likely that you have just moved the DLLs and/or config files around from their initial (relative) locations. (I keep emphasizing

<    1   2   3   4   5