GtkTreeView in a Scrolled Window
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 screen is 240X320 and i have to maintain a scrollabel list with loads of data. everything is wroking fine except that new rows are getting appended on the top but are not visible to me until i scroll up manually till there.My need is to show the latest row added always so that my screen looks updated. Also I have not used viewport for adding the TreeView as it is already a scrollable widget. Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GtkTreeView in a Scrolled Window
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 the middle of the list. My application area screen is 240X320 and i have to maintain a scrollabel list with loads of data. everything is wroking fine except that new rows are getting appended on the top but are not visible to me until i scroll up manually till there.My need is to show the latest row added always so that my screen looks updated. http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#gtk-tree-view-scroll-to-cell Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
List view: Howto get the number of displayed rows?
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 of rows manually? Thanks in advance, Felipe ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: List view: Howto get the number of displayed rows?
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 your list has 10 rows then 10 will be returned. 3. gtk_list_store_remove (GtkListStore *list_store,GtkTreeIter *iter); Regards, Amol. On Wed, 2007-06-20 at 10:47 +0200, Felipe wrote: 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 of rows manually? Thanks in advance, Felipe ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Which widget to use for creating a list
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 moves up with the up key... I guess i need selectable text here..but i m not able to determine how to implement this in GTK.. Plz help me out n suggest the widget structure. Thanks in advance. I would use a GtkTreeView widget along with a GktListStore data model. Regards, Vivien ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Catching window.destroy
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.ffconsultancy.com/products/ocaml_for_scientists/?e ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Catching window.destroy
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 the callback, return FALSE if you want the emission chain to continue, or TRUE if you handled the event. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
I need a dialog with absolutely no border
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 to get rid of that border? Thanks, Kevin ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Invalid UTF-8 string being sent to callback function on toggled signal from GtkCellRendererToggle
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 output to the terminal upon toggling one of the GtkCellRendererToggle(s), followed by the code that will reproduce this problem. What am I doing wrong? A `*' is missing in on_cell_renderer_toggle_toggled() delcaration. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Automake requirements for gtk+, glib
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 failed. 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. Ideally the gtk build could be done with the current version of automake (apparently they're up to v1.10 now), but I could certainly see where that might not be too high a priority. It's only a problem if you want to build project X which requires v1.7 and project Y which requires a newer version - then you either need to keep multiple automake versions, or you have to reinstall automake to build one of the projects. How do the gtk+ developers handle this now ? Regards, Geoff ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: GTK+ 2.11.3 released
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 it square? Do all embedded platforms have a C++ compiler? And are there really that many C++-specific keywords? You are missing the point. This test would be run by make check to prevent that the maintainer releases code having C++ keywords in its headers. Regular users would not be affected by this test. Ciao, Mathias -- Mathias Hasselmann [EMAIL PROTECTED] http://taschenorakel.de/ signature.asc Description: Dies ist ein digital signierter Nachrichtenteil ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Automake requirements for gtk+, glib
-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 problem if you want to build project X which requires v1.7 and project Y which requires a newer version - then you either need to keep multiple automake versions, or you have to reinstall automake to build one of the projects. Keeping multiple automake versions installed is widespread practice. Greetings, Felix -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGeW/blW86h1QHmOcRAsC4AJ9y8gfe9EQ7k+2Xx49fywbFtYMW9gCfSjpL Jowo9ISSuN4+GrK7egG1L1I= =4po5 -END PGP SIGNATURE- ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Automake requirements for gtk+, glib
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 depend on the older version ? I just changed my local autogen.sh to require 1.9.x instead of 1.7.x, and the build seems to be working fine now (it's still compiling; I'm building on a slow laptop). Should a patch updating this be added to subversion ? See bug http://bugzilla.gnome.org/show_bug.cgi?id=448828 Hub ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list