Re: showing a logfile in a Textview(like tail -f)

2006-07-21 Thread tomas
On Thu, Jul 20, 2006 at 07:27:44PM +0200, rupert wrote: [...] works great Glad I could help :-) [...] thx for your help, again you're welcome while( (got = fread(buf, 1, sizeof(buf), fp))0 ) There is one snag here. Fread doesn't distinguish whether there is an EOF

Change state of a GtkCheckMenuItem w/o signal triggering

2006-07-21 Thread Enrico Tröger
Hi, I look for a way to change the state of a GtkCheckMenuItem so that the toggled signal won't be emitted. I tried gtk_check_menu_item_set_active() and setting the active property with g_object_set(), but in both ways the toggled signal is emitted when the state changes(if it is TRUE and I set

Re: Change state of a GtkCheckMenuItem w/o signal triggering

2006-07-21 Thread Yeti
On Fri, Jul 21, 2006 at 01:13:23PM +0200, Enrico Tröger wrote: I look for a way to change the state of a GtkCheckMenuItem so that the toggled signal won't be emitted. This is not possible. I tried gtk_check_menu_item_set_active() and setting the active property with g_object_set(), but in

Re: Change state of a GtkCheckMenuItem w/o signal triggering

2006-07-21 Thread Enrico Tröger
On Fri, 21 Jul 2006 14:06:21 +0200, David Nečas (Yeti) [EMAIL PROTECTED] wrote: I tried gtk_check_menu_item_set_active() and setting the active property with g_object_set(), but in both ways the toggled signal is emitted when the state changes(if it is TRUE and I set it to TRUE nothing

Re: Change state of a GtkCheckMenuItem w/o signal triggering

2006-07-21 Thread Yeti
On Fri, Jul 21, 2006 at 02:33:37PM +0200, Enrico Tröger wrote: This is what I'm doing at the moment, but it is not very nice. There should be a possibility to change the state without triggering the signal. No, there should not be. In principle you never know what else is watching the signal,

GtkInvisible and motion events

2006-07-21 Thread Daniel Alonso
Hi, is it possible to use a GtkInvisible widget so I receive motion events desktop arround without grabbing the pointer? Thx. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

New to GObject, few questions

2006-07-21 Thread Tomasz Jankowski
Hi! Well, I'm working with GTK+ quite long, but I have never tried to get inside it's code. Now I'm trying to understood how GObject works and I must say, that it isn't as easy as I tought ;) I read few times Gobject tutorial provided with GLib's documentation but I don't understood it enouhg

Re: New to GObject, few questions

2006-07-21 Thread Stefan Kost
hi tomasz, Tomasz Jankowski wrote: Hi! Well, I'm working with GTK+ quite long, but I have never tried to get inside it's code. Now I'm trying to understood how GObject works and I must say, that it isn't as easy as I tought ;) I read few times Gobject tutorial provided with GLib's

Re: New to GObject, few questions

2006-07-21 Thread Yeti
On Fri, Jul 21, 2006 at 10:22:19PM +0200, Tomasz Jankowski wrote: I read few times Gobject tutorial provided with GLib's documentation but I don't understood it enouhg good, maybe because I don't like (and know) object languages, I know only C++ basics. So these are my questions: I. What

Removing selected items from a list

2006-07-21 Thread Christopher Backhouse
I want to remove all the items in a list that the user has highlighted After discovering that I'm not allowed to use gtk_tree_selection_selected_foreach I am trying it like this GList* seln=gtk_tree_selection_get_selected_rows(gtk_tree_view_get_selection(view),model); do { GtkTreeIter

Re: Removing selected items from a list

2006-07-21 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/21/2006 2:32 PM, Christopher Backhouse wrote: I want to remove all the items in a list that the user has highlighted After discovering that I'm not allowed to use gtk_tree_selection_selected_foreach I am trying it like this GList*

Re: Removing selected items from a list

2006-07-21 Thread Christopher Backhouse
so - I loop through the selection, converting all the paths into references and put them in a new list. Then I loop through that list, convert the references back to iters so i can remove them from the tree. It also seems to be impossible to convert a reference to an iter - so I have to go via