Retrieving one selected element in a GtkTreeSelection (multiple)?

2006-04-13 Thread Daniel Pekelharing
Hi all, What's the best way to retrieve just one of the selected items in a GtkTreeSelection which has been set to GTK_SELECT_MULTIPLE mode? I don't want to call gtk_tree_selection_selected_foreach in this case as I only need one item - preferably the first (selected) one. I do need all the

Pango help

2006-04-13 Thread nerdy
Hello, I am having some problems in displaying fonts properly using pango. In the following code segment, I am displaying a text at a position (50,50) in a drawing area. For a font size of 24 and family=courier, i am NOT gettting the message displayed at the exact position (50,50). The

where to use g_spawn_async

2006-04-13 Thread Alessandro Barbato
Hello list, in order to redirect the output of an external process to my gtkTextView I used the g_spawn_async function in a callback function. Is that correct? If that, why the window wait for the complete execution of the spawned process? I use: if( g_spawn_async_with_pipes(./, // gchar

Re: g_object_set_data()

2006-04-13 Thread jls
David Necas (Yeti) (2006-04-12, 16:35): On Wed, Apr 12, 2006 at 03:29:50PM +0200, jls wrote: I try to set a glist to a name What does it mean set a glist to a name? You're right, it's not clear with the function g_object_set_data as follow :

gtk with ACCESS changes

2006-04-13 Thread Anton Tropashko
Does anyone know where is gtk version with the changes ACCESS/PalmSource did? Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___

Animation in GtkTreeView

2006-04-13 Thread Dubravin Andrey
Hello all, I try to create animation using GtkCellPixmap in GtkTreeView using next code: angle += PIXMAP_ROTATE_STEP; rotated_pixbuf = pixmap_rotate (original_pixbuf, angle); gtk_list_store_set (GTK_LIST_STORE (tree_model), iter, FILE_LIST_COL_FILE_ICON,

Re: Rebooting the System

2006-04-13 Thread Liam R E Quin
On Thu, 2006-04-13 at 15:59 +1000, Justin Clift wrote: Liam R E Quin wrote: snip Root password should not be prompted for in a gtk-engine-themed window, of course... snip Out of curiosity, why is this bad? A gtk+ theme engine is a piece of executable code (usually in C) that can live in

Re: Rebooting the System

2006-04-13 Thread Matt Hull
a gentoo package installation doesnt require a reboot. matt On Thu, 13 Apr 2006, Justin Clift wrote: Liam R E Quin wrote: snip Root password should not be prompted for in a gtk-engine-themed window, of course... snip Out of curiosity, why is this bad? I was looking into this a while

Removing text from gtkcombobox

2006-04-13 Thread Sandy K
Hello, In combobox, is it possible to remove all the text in it? I am using gtk_combo_box_new_text() and gtk_combo_box_append_text() to add the text in it.. And later i need to empty all its contents Also can i get the number of text entries in the combobox? If yes.. how can this

Re: Removing text from gtkcombobox

2006-04-13 Thread Dubravin Andrey
Hello, In combobox, is it possible to remove all the text in it? I am using gtk_combo_box_new_text() and gtk_combo_box_append_text() to add the text in it.. And later i need to empty all its contents Also can i get the number of text entries in the combobox? If yes.. how can

Re: interactive buttons inside treeview headings

2006-04-13 Thread Guy Rouillier
Stefan Kost wrote: hi all, just tried to set the treeview column 'clickable' property to TRUE. The effect s not really what I want :(. Now the whole treeview header can be clicked, but still not the buttons in there. You are trying to make GtkTreeView do something it wasn't designed to do

Re: interactive buttons inside treeview headings

2006-04-13 Thread Stefan Kost
Hi, from the code it does not look like it was designed to support this use case. Unfortunately the docs track one into beliving this can work. In my case each column represents 'thing' for which I want to have a handy shortcut to toggle some options. Have a layouted header with interactive

Re: Removing text from gtkcombobox

2006-04-13 Thread Amitesh Singh
Can we only hide the Small arrow button in GtkComboBoxEntry?As we can hide the GtkEntry's widget in GtkComboEntry .. GTK_ENTRY(GTK_BIN(combo_box)-child) . On 4/14/06, Sandy K [EMAIL PROTECTED] wrote: Hello, In combobox, is it possible to remove all the text in it? I am using

Re: Rebooting the System

2006-04-13 Thread Justin Clift
Liam R E Quin wrote: On Thu, 2006-04-13 at 15:59 +1000, Justin Clift wrote: Liam R E Quin wrote: snip Root password should not be prompted for in a gtk-engine-themed window, of course... snip Out of curiosity, why is this bad? A gtk+ theme engine is a piece of executable code (usually in

GtkEntry font in rc file

2006-04-13 Thread Fraser Sinclair
All I want to do is change the font of a named GtkEntry widget in a resource file. It used to work in gtk1.2. I have spent hours with various combinations of widget *.name.* etc. to no avail. Does anyone know how to do this in gtk2 ? ___

Re: Removing text from gtkcombobox

2006-04-13 Thread Sandy K
Dubravin Andrey [EMAIL PROTECTED] wrote: Hello, In combobox, is it possible to remove all the text in it? I am using gtk_combo_box_new_text() and gtk_combo_box_append_text() to add the text in it.. And later i need to empty all its contents Also can i get the number of text entries