RE: How to change color of GtkCellRendererProgress ?

2010-08-02 Thread Shawn Bakhtiar
Sorry this is a bad answer. Of course you can do this!! and that is no reason not to use GTK. You can use the themes, or if you need individual progress bars to be different colors, you can easily derive a GtkCellRenderProgressFooBar class from the GtkCellRendererProgress, which does this, an

RE: central 'library' of self-contained real world examples of code for gtkwidgets

2010-07-01 Thread Shawn Bakhtiar
I whole heatedly agree with the 'user annotations' MySQL does the same thing. Moderated, it can be a very useful tool to quickly understand how given object should be implement. Not to mention seeing all the deferent styles people code, etc... > Date: Wed, 30 Jun 2010 22:08:49 +0200 > Sub

RE: GTK Widget assertion problem

2010-06-10 Thread Shawn Bakhtiar
Wow slow down. 1) the suggestion was a good one, and I doubt any one on this list has NOT read that book at some point or another. It is the bible of C. I have the second edition re-print myself. 2) I too was going to make the same suggestions. 2.1) Global variables are in bad i

RE: Multi-platform dbus (was: Ige-mac-integration: New version with Cocoa interface available)

2010-05-20 Thread Shawn Bakhtiar
Sorry for my naivete But I have been building some of our application tool sets in native Cocoa (the printing industry is exclusively MAC, with little room for anything else). The question being, in the standard Cocoa application framework you never actually derive the NSApplication class

RE: different data types between clist and mysql.

2010-04-21 Thread Shawn Bakhtiar
FYI for OSX users I had to install the GNU Readline for Libgda for this to compile. without GNU Readline it popes the following error: /bin/sh ../libtool --tag=CC --mode=link gcc -arch i386 -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacos

RE: different data types between clist and mysql.

2010-04-21 Thread Shawn Bakhtiar
LOL But then, what's the fun in that Thanks. I guess I never checked to see if something like that even existed. Just started writing a database interface specifically for our data structures. I will most certainly give this a try, it may very well come in handy for lists and inp

RE: different data types between clist and mysql.

2010-04-20 Thread Shawn Bakhtiar
Ran into same problem. I use a structure like _IsiField { int type, int pos, int } Then create my own list with _IsiList { GList Fields; GList rows; } Every time retrieve a set of values, I have a routing which sets type to a G_TYPE, which corresponds to the MYSQL_TYPE

RE: GdkOffscreenWindow and texture_from_pixmap extension

2010-04-02 Thread Shawn Bakhtiar
Juan, Let me know if you find a good way to do this with GtkGLExt, it is something I need to do on the OS X platform. I think this will help you, here is where I first came across on the apple devnet: http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/OpenGL-MacPr

RE: displaying a number on screen

2010-03-29 Thread Shawn Bakhtiar
Try retreiving the cairo context for the widget you want to draw in and try this: /* Create the default Layout */ layout = pango_cairo_create_layout(cr); /* Atach the font descriptor */ font_description = pango_font_description_new(); /* Setup Fonts and color and other l

RE: how to draw something on GtkDrawingArea when I click a button?

2010-03-19 Thread Shawn Bakhtiar
As a matter of fact. I would suggest using Cairo. Which will allow you to then draw in any context (IE Printer, PDF, etc...) /* Local Variables */ cairo_t *cr;/* Rendering context derived from widget */ /* Get the context to which we need to draw */ cr = gdk_cairo_crea

RE: gtk+-2.18, win32, and OpenGL

2010-02-15 Thread Shawn Bakhtiar
FYI --- The same thing happens on the OS X version using the Native GTK (NON X Windows). No mater where the widget. It always takes up the entire windows, and does not respond to mouse input. Could it be that the issue is not platform specific? EMAILING FOR THE GREATER GOOD Join me >

RE: How I can do Double Buffer without OpenGL Ext?

2010-02-11 Thread Shawn Bakhtiar
Well in the good old days, when we did have all these fancy smancy libraries ( :P ) we use to double buffer graphics by drawing to an off screen bitmap or any compatible context (to that of the screen) and then simply copy that context to the screen. I.E. 1) Create a new GtkBitmap, 2) Draw

RE: How I can do Double Buffer whether OpenGl Ext?

2010-02-09 Thread Shawn Bakhtiar
>From the logo example: /* * Configure OpenGL-capable visual. */ /* Try double-buffered visual */ glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGB| GDK_GL_MODE_DEPTH | GD

RE: Random crashes when printing on OS X

2010-02-04 Thread Shawn Bakhtiar
I am now also getting this when I print, after having added a cairo_clip() to bound my drawings into a (0,0),(1,1) region. But I do not get it when I am displaying to screen, only printing, and I use the same function for both, one simply gets the cairo_t from the drawing area, the other retr

Random crashes when printing on OS X

2010-02-04 Thread Shawn Bakhtiar
I am using the GtkPrint* functions to print. However at what seems to be random occurrences the application crashes with the following error: Gdk:ERROR:gdkeventloop-quartz.c:559:select_thread_collect_poll: assertion failed: (ufds[i].fd == current_pollfds[i].fd) Abort trap When the user c

RE: [GtkGLExt] Window size issue

2010-01-30 Thread Shawn Bakhtiar
I know someone brought this up before. I don't recall if there was a resolution to it or not. I have successfully patched and compiled the latest from the GtkGLExt git repo and running on OS X Snow Leopard (10.6), although I am use the 10.5 building to the 368 architecture. However, any a

RE: Random memory allocation error

2009-12-26 Thread Shawn Bakhtiar
rceforge.net > Subject: Re: Random memory allocation error > > > On Sat, 26 Dec 2009, Shawn Bakhtiar wrote: > > > At what appears to be random locations in a program which runs > > thought 24000 components, and breaking out the formulas in to > > there raw mat

Random memory allocation error

2009-12-26 Thread Shawn Bakhtiar
At what appears to be random locations in a program which runs thought 24000 components, and breaking out the formulas in to there raw material components (formulations table of about 200,000 formulation lines, I see this error message: malloc: *** error for object 0xe41074: incorrect check

RE: GtkGLExt (was Re: Gtk 3.0)

2009-12-07 Thread Shawn Bakhtiar
Well... this seems to turn on a few flames... so let me put some of this to rest. For anyone to say OpenGL is "niche", and does not apply to everyday apps, I again remind you of iChat and the OS X Panel. Granted it has only recently found prominence in the desktop but it is quickly making way a

RE: GtkGLExt (was Re: Gtk 3.0)

2009-12-04 Thread Shawn Bakhtiar
I've sort of followed this chain sorry if I am rehashing something that has already been covered. IMHO I agree that GtkGLExt should be directly integrated into GTK. Most modern user interfaces (IE OS X (NextStep)) are integrating 3D directly into the windowing system. If I am not mistaken t