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
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
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
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
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
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
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
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
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
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
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
>
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
>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
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
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
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
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
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
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
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
20 matches
Mail list logo