Re: How to set background color for a pango layout being printed ?

2007-10-16 Thread Miroslav Rajcic
Unfortunately, this does not work. All I get is a page that is completely empty (white). My requirements are not to paint entire background of a page in one color, but to paint the background of the single text layout in that color. Each page has more than one text layout being drawn with the diff

Re: GtkFileChooserDialog too slow

2007-10-16 Thread Andrew Smith
Iain * a écrit : > On 10/17/07, Andrew Smith <[EMAIL PROTECTED]> wrote: > >> Will you please fix it? I need to navigate to /usr/bin once in a while >> to select what app to open files with from Firefox, and the experience >> ranges from annoying to `kill firefox-bin` because I don't have the time

Re: GtkFileChooserDialog too slow

2007-10-16 Thread Iain *
On 10/17/07, Andrew Smith <[EMAIL PROTECTED]> wrote: > Will you please fix it? I need to navigate to /usr/bin once in a while > to select what app to open files with from Firefox, and the experience > ranges from annoying to `kill firefox-bin` because I don't have the time > to wait for the file c

GtkFileChooserDialog too slow

2007-10-16 Thread Andrew Smith
Hi Try to navigate to /usr/bin using a no-frills GtkFileChooserDialog. My computer is a bit old, but it's far from being obsolete and it sometimes takes minutes (!!) to display that directory. I implemented a very similar file list using a GtkTreeView in my own application and reading the dire

Re: How to set background color for a pango layout being printed ?

2007-10-16 Thread Behdad Esfahbod
On Tue, 2007-10-16 at 12:13 +0200, Miroslav Rajcic wrote: > > layout = gtk_print_context_create_pango_layout (context); > pango_layout_set_text (layout, text, -1); cairo_set_source_rgb (cr, bgcolor.red, bgcolor.green, bgcolor.blue); cairo_paint (cr); > //set fg color > cairo_set_source_rgb (cr,

Re: drag and drop on GtkContainer

2007-10-16 Thread Johannes Schmid
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! >> and gdk_window_get_position() but >> that gives me the save position for all children > > I don't understand what you mean by "save position". Sorry, I meant "same" here - very bad typo. > I happen to know that you are trying to implement dr

GLib 2.14.2 released

2007-10-16 Thread Matthias Clasen
GLib 2.14.2 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.14/ http://download.gnome.org/sources/glib/2.14/ glib-2.14.2.tar.bz2 md5sum: fca5d26c8efea4e6e547c81c801bf67c glib-2.14.2.tar.gzmd5sum: bdc359926f7c69c9a5c8b19a6deb5665 This is a bug fix release in the 2.14 series

Re: drag and drop on GtkContainer

2007-10-16 Thread Murray Cumming
On Sun, 2007-10-14 at 21:12 +0200, Johannes Schmid wrote: > I am trying drag and drop on an GtkContainer and I want to find out the > nearest child from the drop point. So far I tried to get the child > position using gtk_widget_get_window() I can't find this function. Do you mean GtkWidget::win

How to set background color for a pango layout being printed ?

2007-10-16 Thread Miroslav Rajcic
I've tried to find out the answer to this question but I seem to be running in circles. The code below has one liner to set foreground (font) color for the pango layout being printed. How do I set the background color for the same plango layout ? TIA, Miroslav Rajcic layout = gtk_print_cont

Re: Help to create an custom control for calendar

2007-10-16 Thread Gerardo Di Iorio
Very Thanks, i now try to port this calendar to c language. ciao Gerardo di Iorio In data 15/10/2007, "Gian Mario Tagliaretti" <[EMAIL PROTECTED]> ha scritto: >2007/10/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > >ciao Gerardo, > >> i need create an custom control similar to calendar of iCal. >

Re: Images in database

2007-10-16 Thread Daniel Espinosa
See at gnome-db.org page for GTK based database manipulation widgets and GDA (GNOME Database Access) projects, they will allow to use SQLite, Postgresql or any other supported by GDA to store any data using the same API. 2007/10/15, Matí­as Alejandro Torres <[EMAIL PROTECTED]>: > Hi, > > I'm build