How to inserts a widget in the toolbar at the given position

2007-11-16 Thread sphurti durgade
hello, how to inserts a widget in the toolbar at the given position. because gtk_toolbar_insert_widget is deprecated i tried with gtk_tool_button_new (GtkWidget *icon_widget, const gchar *label); instead of icon_widget i used other widget (e.g GtkHScale) it is able to show hscale in its

How to make GtkTreeView and GtkTextView scrollable?

2007-11-16 Thread AlannY
Hi. I want to make my GtkTreeView and GtkTextView scrollable automaticaly. How to do it? It's lame question. I know. Thank you. -- |\ _,,,---,,_ /,`.-'`'-. ;-;;,_ |,3- ) )-,_. ,\ ( `'-' '---''(_/--' `-'\_) ___

Re: How to inserts a widget in the toolbar at the given position

2007-11-16 Thread Micah Carrick
I answered this in your post here: http://www.gtkforums.com/about876.html From the GtkToolItem API: GtkToolItems are widgets that can appear on a toolbar. To create a toolbar item that contain something else than a button, use gtk_tool_item_new(). Use gtk_container_add() to add a child widget

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

2007-11-16 Thread Enrico Tröger
On Wed, 17 Oct 2007 08:40:04 +0200, Miroslav Rajcic [EMAIL PROTECTED] wrote: On Windows (GTK+ 2.10.11 from http://gladewin32.sourceforge.net/), when using print preview operation (.emf image format) everything seems to work, but I get strange drawing artefacts in the picture. Individual text

Re: How to make GtkTreeView and GtkTextView scrollable?

2007-11-16 Thread Eduardo M KALINOWSKI
On Nov 16, 2007 1:58 PM, AlannY [EMAIL PROTECTED] wrote: Hi. I want to make my GtkTreeView and GtkTextView scrollable automaticaly. How to do it? It's lame question. I know. Just add them inside a GtkScrolledWindow. ___ gtk-app-devel-list mailing

Re: CairoIO - Cairo compatible successor to GdkPixbuf

2007-11-16 Thread BJörn Lindqvist
On Nov 13, 2007 4:15 PM, BJörn Lindqvist [EMAIL PROTECTED] wrote: Checkout using: svn co svn.gnome.org/svn/cairoio/trunk cairoio The implementation is in /ref/cairoio.py which also contain lots of documentation. I know the name CairoIO might not be so nice, but it is only seven

Is g_source_remove threadsafe?

2007-11-16 Thread Alexander Larsson
I'm doing something where i have one thread queueing idles and timeouts in a thread, and the main loop consumes this. In some cases i want to remove the sources (to replace a timeout with an idle). However: gboolean g_source_remove (guint tag) { GSource *source; g_return_val_if_fail (tag

Re: Is g_source_remove threadsafe?

2007-11-16 Thread Owen Taylor
On Fri, 2007-11-16 at 14:12 +0100, Alexander Larsson wrote: On Fri, 2007-11-16 at 14:04 +0100, Tim Janik wrote: On Fri, 16 Nov 2007, Alexander Larsson wrote: I'm doing something where i have one thread queueing idles and timeouts in a thread, and the main loop consumes this. In some

Re: Is g_source_remove threadsafe?

2007-11-16 Thread Tim Janik
On Fri, 16 Nov 2007, Owen Taylor wrote: While I don't really consider g_source_remove(some_id_that_I_might_already_have_removed) 100% valid, the docs do imply that it is legal, so perhaps it would be worth fixing up that case (say, by having a referencing internal variant of

Re: CairoIO - Cairo compatible successor to GdkPixbuf

2007-11-16 Thread BJörn Lindqvist
On Nov 15, 2007 10:34 PM, Mikkel Kamstrup Erlandsen [EMAIL PROTECTED] wrote: Some background info about this project is found here: * http://www.mail-archive.com/gtk-devel-list@gnome.org/msg06472.html * http://live.gnome.org/GtkCairoIntegration *

Re: Is g_source_remove threadsafe?

2007-11-16 Thread Tim Janik
On Fri, 16 Nov 2007, Alexander Larsson wrote: I'm doing something where i have one thread queueing idles and timeouts in a thread, and the main loop consumes this. In some cases i want to remove the sources (to replace a timeout with an idle). However: Am I missing something obvious here?

Re: gtester git repo (Re: GLib testing framework)

2007-11-16 Thread Sven Herzberg
Your API has g_test_rand_bit() which should (IMO) be called g_test_rand_boolean() to match the fundamental type's name that's used for this in glib (gboolean) and also to provide consistency with g_rand_boolean(). I think a difference to the rest of the g_* API isn't really helpful in

Re: CairoIO - Cairo compatible successor to GdkPixbuf

2007-11-16 Thread Alexander Larsson
On Thu, 2007-11-15 at 22:34 +0100, Mikkel Kamstrup Erlandsen wrote: I am really exited about the idea about joggling cairo surfaces around over G{In,Out}putStreams, but the idea may be bonkers, I have not read the GIO api much, not do I understand the finer details of cairo surfaces. Yeah,

Re: RFC: Gtk+ testing utilities

2007-11-16 Thread Tim Janik
On Fri, 16 Nov 2007, Richard Hult wrote: Tim Janik wrote: hey All. Hi Tim, [snip] /* syncronize rendering operations with X server rendering queue */ voidgtk_test_xserver_render_sync(GdkWindow *window); Should this be named less X-ish? I noticed that some of the

Re: Is g_source_remove threadsafe?

2007-11-16 Thread Alexander Larsson
On Fri, 2007-11-16 at 08:30 -0500, Owen Taylor wrote: On Fri, 2007-11-16 at 14:12 +0100, Alexander Larsson wrote: On Fri, 2007-11-16 at 14:04 +0100, Tim Janik wrote: On Fri, 16 Nov 2007, Alexander Larsson wrote: I'm doing something where i have one thread queueing idles and timeouts

Re: RFC: Gtk+ testing utilities

2007-11-16 Thread Richard Hult
Tim Janik wrote: hey All. Hi Tim, [snip] /* syncronize rendering operations with X server rendering queue */ voidgtk_test_xserver_render_sync(GdkWindow *window); Should this be named less X-ish? I noticed that some of the event simulation functions are very X specific

Re: RFC: Gtk+ testing utilities

2007-11-16 Thread Tommi Komulainen
Some quick and random comments that come to mind... /* syncronize rendering operations with X server rendering queue */ voidgtk_test_xserver_render_sync(GdkWindow *window); /* synthesize and send key press or release event */ gbooleangtk_test_simulate_key

Re: Is g_source_remove threadsafe?

2007-11-16 Thread Tim Janik
On Fri, 16 Nov 2007, Alexander Larsson wrote: On Fri, 2007-11-16 at 14:04 +0100, Tim Janik wrote: On Fri, 16 Nov 2007, Alexander Larsson wrote: I'm doing something where i have one thread queueing idles and timeouts in a thread, and the main loop consumes this. In some cases i want to

Re: CairoIO - Cairo compatible successor to GdkPixbuf

2007-11-16 Thread Carl Worth
On Fri, 16 Nov 2007 14:04:45 +0100, =?ISO-8859-1?Q?BJ=F6rn_Lindqvist?= wrote: surface = cairoio.load('foobar.png') if surface.get_format() in (cairo.FORMAT_ARGB32,): is equivalent with: pixbuf = gdk.pixbuf_new_from_file('foobar.png') if pixbuf.get_has_alpha(): Actually,

Re: CairoIO - Cairo compatible successor to GdkPixbuf

2007-11-16 Thread Mikkel Kamstrup Erlandsen
On 16/11/2007, BJörn Lindqvist [EMAIL PROTECTED] wrote: On Nov 15, 2007 10:34 PM, Mikkel Kamstrup Erlandsen [EMAIL PROTECTED] wrote: Some background info about this project is found here: * http://www.mail-archive.com/gtk-devel-list@gnome.org/msg06472.html *