using cairo surfaces
Hello. I'm trying to create a custom container widget that holds the child widgets in a hbox (or scrollarea, after I learn how to use it). The child widgets are using cairo for the drawing, and so is the container widget. I want to optimize the container drawing since the child widgets don't always need complete redrawing. The child drawing is currently done to the container's cairo surface, which is passed to each child widget, and childs draw to this surface. Reference to this surface is stored and I'm using a private variable in the container widget that keeps track of whether the childs need full redraw or can I use the stored surface to do quick redraw without the need to call the childs' drawing functions. Now, I want the child widgets to have their own surfaces and each child should handle the smart drawing. So the child widget decides whether it uses the previously rendered surface or redraws some parts. The container then just uses set_source_surface to draw the child at desired position. What kind of surface I should create in the child widgets and how do I copy it to the container surface? I've tried creating image surface, but I guess I was doing something wrong, because nothing was drawn, or I got segfault. So I still have not found the right way of doing it. The documentation is lacking examples, so I have proceeded in trial and error-basis, and now I'm kind of stuck. Tommi ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK 2.10.x status on WIN32
I've seen GTK 2.10 is not yet distributed as stable for WIN32 (at least is not in the Gimp website or in the Tor GTk-win32 page). There are still major issues or I can target is as a stable platform for an application due do be released in december? Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
More widgets?
Im looking for some widgets like meters, thermometer, tachometers... I need it for show a numeric status in a coloured - quick to see way Are there any of them already been made? Saludos, Juan Pablo. -- Juan Pablo Daniel Borgna [EMAIL PROTECTED] Development Manager SHELLCODE, IT Solutions Security Research. Paraná 264, Piso 4to, Of.46 - C1017AAF Ciudad Autónoma de Buenos Aires - Argentina Phone: +54 (011) 57.11.52.63 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Obtaining area needed to render a text
I am developing an application where I need to render some objects in a DrawingArea, among with them are some text labels. I'd like to know in advance how much area (width/height) would be needed to render a text. Also, I am using cairo to render. Anyway, thanks for the attention. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: More widgets?
2006/9/29, Juan Pablo Daniel Borgna [EMAIL PROTECTED]: Im looking for some widgets like meters, thermometer, tachometers... I need it for show a numeric status in a coloured - quick to see way Are there any of them already been made? http://tesla.eletrica.ufpr.br/giw/ -- Gian Mario Tagliaretti http://www.parafernalia.org/pygtk/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
how to set a plain colour in a GtkImage
Hi, I have a GtkImage which, in some cases, I need to set to the to a plain colour (e.g. set it entirely to yellow). I couldn't find any function in GdkPixbuf GTK API to do it... What's the smartest way to do it ? Thanks! Francesco Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GIOChannel and win32?
Hi! Some time ago I created a thread on this mailing list and someone (I don't remember his name now) said, that he read on GTK+ devel list, that GIOChannel may not work under the Microsoft Windows? Is that true, or not? -- Pozdrawiam! Tom ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: how to set a plain colour in a GtkImage
On Mon, Oct 02, 2006 at 10:28:53PM +0200, Francesco Montorsi wrote: I have a GtkImage which, in some cases, I need to set to the to a plain colour (e.g. set it entirely to yellow). I couldn't find any function in GdkPixbuf GTK API to do it... What's the smartest way to do it ? GdkPixbuf has method gdk_pixbuf_fill() to fill a pixbuf with a uniform color. This is not the smartest way to do it, especially if the images can be large, but it's typically the most straightforward way. Yeti -- Whatever. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Help with a variable in a .pc file
Hi all Could any help me on how to get a variable value in a .pc file? I have the following values in the glade-3.pc file: catalogdir=${prefix}/share/glade3/catalogs pixmapdir=${prefix}/share/glade3/pixmaps moduledir=${exec_prefix}/lib/glade3/modules I need this variables in order to install the compiled and support files in the correct plase to allow glade3 to find them. At moment I try in configure.in to use the following sentences: AC_SUBST(GLADE3_PIXMAP_DIR, '[$(shell pkg-config --variable=pixmapdir glade-3)]') AC_SUBST(GLADE3_MODULES_DIR, '[$(shell pkg-config --variable=moduledir glade-3)]') AC_SUBST(GLADE3_CATALOG_DIR, '[$(shell pkg-config --variable=catalogdir glade-3)]') But it doesn't compile the sources in the glade directory. Note that in configure I set the AC_OUTPUT to point to the glade directory, ./configure is generating the Makefiles but never compiles them. In the glade/Makefile.am I have: @INTLTOOL_XML_NOMERGE_RULE@ catalogsdir = $(GLADE3_CATALOG_DIR) catalogs_DATA = gnomedb.xml gnomedb.xml.in EXTRA_DIST = \ $(catalogs_DATA) INCLUDES = \ -g -Wall \ -I$(top_srcdir)\ -I$(top_builddir)\ -DG_LOG_DOMAIN=\GnomeDB\ \ $(LIBGNOMEDB_CFLAGS) \ $(WITHGNOME_CFLAGS)\ $(GLADE3_CFLAGS) gladegnomedb_LTLIBRARIES = libgladegnomedb.la gladegnomedbdir = $(GLADE3_MODULES_DIR) libgladegnomedb_la_LIBADD = $(top_builddir)/libgnomedb/libgnomedb-3.la \ $(LIBGNOMEDB_LIBS) $(WITHGNOME_LIBS) $(GLADE3_LIBS) libgladegnomedb_la_LDFLAGS = -module -avoid-version libgladegnomedb_la_SOURCES = glade-gnomedb.c -- Trabajar, la mejor arma para tu superación de grano en grano, se hace la arena (R) (entrámite, pero para los cuates: LIBRE) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list