help with image swap example

2007-10-15 Thread happy programmer
What would be the best way to code a GTK2 app to read in the filenames of some .jpg images from a hard coded directory path, display those filenames in a list, default to displaying the first image, and display the name in a label below the image. I would like to have it where clicking on another

Re: GtkTreeModelFilter and GtkTreeSortable

2007-10-15 Thread Kristian Rietveld
On Wed, Oct 10, 2007 at 07:38:22PM -0300, Mat??as Alejandro Torres wrote: - I have to create a new GtkTreeModelSort everytime the child model is modified? or it gets resorted automatically? Example: fiter = self.sortedModel.convert_iter_to_child_iter (None, siter) miter =

GtkTextBuffer crashes

2007-10-15 Thread AlannY
Hi there. I have trouble in my program. First of all, I'm using latest GTK and got many assertion in console when using GtkTextBuffer. Second. I have 2 threads. First one is a gtk_main_loop. Second one is my (pthread) thread. In second thread I'm trying to set this:

Re: GtkTextBuffer crashes

2007-10-15 Thread AlannY
AlannY wrote: Hi there. I have trouble in my program. First of all, I'm using latest GTK and got many assertion in console when using GtkTextBuffer. Second. I have 2 threads. First one is a gtk_main_loop. Second one is my (pthread) thread. In second thread I'm trying to set this:

Re: GtkTextBuffer crashes

2007-10-15 Thread Michael Lamothe
Hi AlannY, I'm new to this mail thread but I think that I know what your issue is. Basically, GTK/GDK is not designed to be called from multiple at the same time. Doing so causes all kinds of strange issues such as the ones that you are seeing. There are many ways to get around this issue but

Re: GtkTextBuffer crashes

2007-10-15 Thread Michael Lamothe
In short, I think that's it much better if you don't make GTK calls from the second thread, it's a sure-fire way to avoid multi-threading UI issues. But, all you need to do is, 1. wrap gtk_main(), ie., g_thread_init (NULL); // Add this line gdk_threads_init (); // Add this line

rc file only works outside gnome

2007-10-15 Thread Richard Kettlewell
My GTK+ application uses colors in its user interface for various purposes, and calls gtk_rc_parse_string() at startup to set some defaults. This works fine on my Mac and under KDE, but if I run it in a Gnome session (under Debian etch), none of the colors appear. I infer that they have been

GTK+ window startup notification

2007-10-15 Thread Binary Chen
Hi, I know in X there is a machnism called startup notification, one launcher can listen to the various windowing message to draw a task list window accordingly. But I now use GTK+ on a different backend(directfb) which seems no startup notification implemented, so I seek if the GTK+ has built

How can I get the gnome-panel's size?

2007-10-15 Thread TualatriX
Hello everyone: I want to get something about gnome-panel. 1. How can I get the number of gnome-panel? In the normal case, there are two gnome-panel in the GNOME desktop environment. But how to use gtk+ to get the information? 2. If I get the gnome-panel, how can I get the panel's

Help to create an custom control for calendar

2007-10-15 Thread [EMAIL PROTECTED]
hi, i need create an custom control similar to calendar of iCal. What can I use? An canvas ?? Ciao, Gerardo Di Iorio ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Help to create an custom control for calendar

2007-10-15 Thread Gian Mario Tagliaretti
2007/10/15, [EMAIL PROTECTED] [EMAIL PROTECTED]: ciao Gerardo, i need create an custom control similar to calendar of iCal. What can I use? An canvas ?? On PyGTK ML we had a similar discussion [1] about calendar widget, Samuel Abels implemented one on top of goocanvas (using python

Re: Don't understand valgrind output

2007-10-15 Thread Thomas Stover
Date: Sun, 14 Oct 2007 10:24:14 -0400 (EDT) From: Allin Cottrell [EMAIL PROTECTED] Subject: Re: Don't understand valgrind output To: Michael Lamothe [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat,

Tooltips on GtkTreeView

2007-10-15 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Is there an easy way to set a tooltip on a GtkTreeView for the row that the user is hovering their cursor over. It is not guaranteed that the row the user is over is the selected row. Also if the tooltip can be set on row addition that is

Re: Tooltips on GtkTreeView

2007-10-15 Thread Binary Chen
On Mon, 2007-10-15 at 09:08 -0600, Kevin DeKorte wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Is there an easy way to set a tooltip on a GtkTreeView for the row that the user is hovering their cursor over. It is not guaranteed that the row the user is over is the selected

Re: Tooltips on GtkTreeView

2007-10-15 Thread Enrico Tröger
On Mon, 15 Oct 2007 23:14:56 +0800, Binary Chen [EMAIL PROTECTED] wrote: On Mon, 2007-10-15 at 09:08 -0600, Kevin DeKorte wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Is there an easy way to set a tooltip on a GtkTreeView for the row that the user is hovering

Images in database

2007-10-15 Thread Matí­as Alejandro Torres
Hi, I'm building an application which handles, let's say... people's information. This information is stored using sqlite which until now consisted only in human-readable data (text/integers/dates). But... now I need to handle images (GdkPixbufs) and I don't know how to store it, is perfectly

Re: turning g_assert* into warnings

2007-10-15 Thread Federico Mena Quintero
On Fri, 2007-10-12 at 11:52 +0200, Tim Janik wrote: i'd like to propose to turn g_assert and friends like g_assert_not_reached into warnings instead of errors. i'll give a bit of background before the details though. the main reasons we use g_return_if_fail massively throughout the glib and

Re: GdkPixbuf vs. Cairo, new image library needed?

2007-10-15 Thread Kalle Vahlman
2007/10/15, Jean-Philippe Chancelier [EMAIL PROTECTED]: Kalle Pixel-based drawing is already a drawback, no need to wait for bigger Kalle screens. But that's why nobody uses GDK to _draw_ anything anymore, Well, I'm not sure of that point. May be I do wrong but I have a

Re: GdkPixbuf vs. Cairo, new image library needed?

2007-10-15 Thread Carl Worth
On Sat, 13 Oct 2007 00:51:44 +, =?ISO-8859-1?Q?BJ=F6rn_Lindqvist?= wrote: I have played around with Cairo some more and it seems to me that it is not fully ready yet. :( Cairo blits and scales much slower than gdk-pixbuf (software that is) Do you have some simple test cases to demonstrate

Re: GdkPixbuf vs. Cairo, new image library needed?

2007-10-15 Thread BJörn Lindqvist
I've written a wiki page summarizing this and previous discussions on this topic: http://live.gnome.org/GtkCairoIntegration. Please update it mercilessly. -- mvh Björn ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: GdkPixbuf vs. Cairo, new image library needed?

2007-10-15 Thread BJörn Lindqvist
On 10/15/07, Carl Worth [EMAIL PROTECTED] wrote: On Sat, 13 Oct 2007 00:51:44 +, =?ISO-8859-1?Q?BJ=F6rn_Lindqvist?= wrote: I have played around with Cairo some more and it seems to me that it is not fully ready yet. :( Cairo blits and scales much slower than gdk-pixbuf (software that

Re: turning g_assert* into warnings

2007-10-15 Thread Stefan Kost
hi, Marco Barisione schrieb: Il giorno ven, 12/10/2007 alle 15.16 +0200, Tim Janik ha scritto: please reread my reasoning about G_DISABLE_ASSERT, there already is no behavior of g_assert() you could rely on. (and some distributions do build their binaries with G_DISABLE_ASSERT and/or