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

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 in

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

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

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 key or

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

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; inside

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

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 the

Re: Automake requirements for gtk+, glib

2007-06-20 Thread Geoff Buchan
On 6/16/07, Matthias Clasen [EMAIL PROTECTED] wrote: No. automake versions are not compatible. Simply changing the requirements is not an option. Thanks... My attempt at a quick hack (simply replacing 1.7 with 1.9 for the version) seemingly could compile gtk, but the make install step

Re: GTK+ 2.11.3 released

2007-06-20 Thread Mathias Hasselmann
Am Montag, den 18.06.2007, 19:08 -0600 schrieb Elijah Newren: On 6/18/07, Hubert Figuiere [EMAIL PROTECTED] wrote: I don't agree with that one. It is much simplier to add a C++ compile test. Afterall, which platform does not have a C++ compiler? Why reinventing the wheel yet again to make

Re: Automake requirements for gtk+, glib

2007-06-20 Thread Felix Rabe (public)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Geoff Buchan wrote: I'm not familiar with the details of automake, but I infer it must have had some incompatible changes somewhere between 1.7 and 1.9. http://en.wikipedia.org/wiki/Automake - last paragraph before Contents. It's only a

Re: Automake requirements for gtk+, glib

2007-06-20 Thread Hubert Figuiere
Geoff Buchan wrote: I was trying to build gtk+ and glib from the trunk subversion sources, but autogen.sh complains about wanting version 1.7.x of automake. I now have automake v1.9.6 installed, so the default script was actually requiring me to use a much older version. Should it really