Re: Invalid UTF-8 string being sent to callback function on "toggled" signal from GtkCellRendererToggle

2007-06-20 Thread Yeti
On Wed, Jun 20, 2007 at 05:52:04PM -0400, Justin Stallard wrote: > > The subject pretty much says it all. The tree path string that is > being sent to my callback function as a result of the "toggled" signal > from a GtkCellRendererToggle in a GtkTreeView is an "Invalid path". > The following is t

Invalid UTF-8 string being sent to callback function on "toggled" signal from GtkCellRendererToggle

2007-06-20 Thread Justin Stallard
Hi, The subject pretty much says it all. The tree path string that is being sent to my callback function as a result of the "toggled" signal from a GtkCellRendererToggle in a GtkTreeView is an "Invalid path". The following is the output to the terminal upon toggling one of the GtkCellRendererToggl

I need a dialog with absolutely no border

2007-06-20 Thread Kevin Lambert
I am using Glade-3 to create a dialog which only has a button and that button has an image assigned to it. What I need is for the image to take up the entire screen without a border. What I am finding is that GtkDialog seems to force a 2-3 pixel border around the entire image. Is there any way t

Re: Catching window.destroy

2007-06-20 Thread Emmanuele Bassi
On Mon, 2007-06-18 at 07:17 +0100, Jon Harrop wrote: > When a user clicks on the "X" of the main window of my GTK app, I'd like to > handle the signal (e.g. to check for unsaved data). How do I handle this > signal to prevent the window from disappearing? connect to the "delete-event" signal; in

Catching window.destroy

2007-06-20 Thread Jon Harrop
When a user clicks on the "X" of the main window of my GTK app, I'd like to handle the signal (e.g. to check for unsaved data). How do I handle this signal to prevent the window from disappearing? Many thanks, -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. OCaml for Scientists http://www.ffc

Re: Which widget to use for creating a list

2007-06-20 Thread Vivien Malerba
On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > i m new to GTK+ > i am working on GTK+ with directfb on embedded platform. > i want to have a list of say 4-5 items which can be selected by the > direction keys..so that the selection moves to next one as u press the > down k

Re: List view: Howto get the number of displayed rows?

2007-06-20 Thread amol
Hi I am not sure whether this is right/optimized solution. 1. gtk_list_store_insert_before (GtkListStore *list_store, GtkTreeIter *iter, GtkTreeIter *sibling); with sibling = NULL. 2. gchar* gtk_tree_model_get_string_from_iter (GtkTreeModel *tree_model, GtkTreeIter *iter); if you

List view: Howto get the number of displayed rows?

2007-06-20 Thread Felipe
Hi, Perhaps a stupid question, but I searched unsuccessfully in the documentation of GtkListStore and GtkTreeModel about the number of rows that are currently displayed in a list view. Now I need to know if exists a function for this or should I use gtk_tree_model_foreach() to count the number

Re: GtkTreeView in a Scrolled Window

2007-06-20 Thread Yeti
On Wed, Jun 20, 2007 at 12:38:31PM +0530, Divya yadav wrote: > I tried adding a Treeview inside a scroll window. and i am updating my > treeview using *gtk_list_store_prepend *it is working fine but the scrollbar > is also moving along with these updates by the end of all updates it is > somewhere

GtkTreeView in a Scrolled Window

2007-06-20 Thread Divya yadav
Hello Everyone I tried adding a Treeview inside a scroll window. and i am updating my treeview using *gtk_list_store_prepend *it is working fine but the scrollbar is also moving along with these updates by the end of all updates it is somewhere in the middle of the list. My application area scree