wrap c++ objects with inheritance

2010-11-06 Thread Matthew Talbert
Can anyone point me to documentation or examples of how to wrap C++ objects with gobject and preserve inheritance? I want to do something like this: ClassA ClassB (inherits from ClassA) and wrap in gobject like this: GClassA GClassB and I need to be able to cast GClassB back to GClassA. GClassA

Re: gtkhtml fonts

2009-12-24 Thread Matthew Talbert
On Fri, Dec 18, 2009 at 10:08 PM, Matthew Talbert wrote: > It used to be possible to change the font that gtkhtml used (for the > entire document) by calling gtk_widget_modify_font on the widget. It > seems in recent versions that this no longer works. I've played around > with

gtkhtml fonts

2009-12-18 Thread Matthew Talbert
It used to be possible to change the font that gtkhtml used (for the entire document) by calling gtk_widget_modify_font on the widget. It seems in recent versions that this no longer works. I've played around with setting styles on the widget and haven't gotten that to work either. Does anyone know

Re: get list of available locales

2009-09-15 Thread Matthew Talbert
> We've implemented this sort of thing -- a language selector that > lets you choose between 13 supported languages -- in gretl, > another GTK app.  I'm not sure we're doing it in the best way, but > it seems to work OK.  It's definitely fiddly work. To see what we > did, look at gretl_intl.c, line

get list of available locales

2009-09-14 Thread Matthew Talbert
Hi, This is quite possibly the wrong place to ask this question. If so, please point me the right direction. In our GTK/GNOME application, our users would like the ability to use the program in a locale of their choice (out of the ~10 translations we have available) rather than detecting automati

Re: scalable icons Windows

2009-08-31 Thread Matthew Talbert
> 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 README.Windows file in the biniary package? Thanks in > advance. OK, it took me a good deal longer than the one day I promised, but here it is

Re: scalable icons Windows

2009-08-11 Thread Matthew Talbert
On Tue, Aug 11, 2009 at 3:08 AM, Tor Lillqvist wrote: > 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. no problem. > Anyway, good that you got it working. Could you come up with some > short but

Re: scalable icons Windows

2009-08-11 Thread Matthew Talbert
It's working now. I had previously hand-edited the gdk-pixbuf.loaders file, and evidently I made a small mistake (there are a couple of places where there are a number of spaces in a row. Perhaps I got the wrong number?). Anyway, thanks again for the help. I might suggest that instructions for thi

Re: scalable icons Windows

2009-08-10 Thread Matthew Talbert
forgot to reply to all. Sorry. On Tue, Aug 11, 2009 at 2:47 AM, Tor Lillqvist wrote: >> 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/binari

scalable icons Windows

2009-08-10 Thread Matthew Talbert
I have set up the svg pixbuf loader according to the instructions here http://www.mail-archive.com/gtk-app-devel-list@gnome.org/msg11731.html, including editing the gdk-pixbuf.loaders file and gathering all dependencies. My application uses a named icon, "insert-link", and on linux (Ubuntu) this au

Re: Windows, Enchant and Aspell

2009-02-08 Thread Matthew Talbert
2009/2/8 Enrico Tröger : > Hi, > > I just noticed Tor has built enchant for Windows [1], great job. Cool. > > Being curious whether it works, I installed aspell and two dictionaries > from their Windows installers, I used the default directory C:\Program > Files \Aspell. > > Unfortunately and not r

Re: gtk treeview windows

2009-02-07 Thread Matthew Talbert
> Oh, sorry. I assume you have verified that you don't have any heap > corruption by running the code under valgrind on Linux? Other than > that I really can't give any specific advice. Perhaps ask somebody > else to read the code carefully. If the problem did not occur at some > earlier stage, the

Re: gtk treeview windows

2009-02-05 Thread Matthew Talbert
On Thu, Feb 5, 2009 at 4:38 AM, Tor Lillqvist wrote: > > > I would appreciate any suggestions as to how to debug this further. > > Write a minimal sample program that exhibits the problem, file a bug, > and attach the sample program (as a single source file in C; no > binaries, not zip archives, n

gtk treeview windows

2009-02-05 Thread Matthew Talbert
Hi all, I am a developer for Xiphos (previously GnomeSword) and I'm heavily involved in our Windows port effort. Most things have gone smoothly, but one issue really has me stumped. Occasionally all of the treeviews in the application will "freeze". By this I mean that they will not expand or col