RE: list of g_signal_connect options

2003-03-04 Thread Murray . Cumming
I was wondering if someone could direct me to a list of all the options viable under g_signal_connect, such as clicked, destroy, realize etc. I couldn't find this online anywhere, and the only ones I know of are because of the gtk-demo. Thanks! The signals for each widget are listed

Re: Help with focus/activation problems

2003-03-04 Thread Owen Taylor
On Mon, 2003-03-03 at 19:22, Carl B. Constantine wrote: I posted a message a couple days ago, but no answer so I'm going to post again with some additional info that may help. I have a window in which are several widgets, such as GtkEntry and GtkTextView, and GtkTreeView (list store). When I

Re: glib and threads

2003-03-04 Thread Owen Taylor
On Mon, 2003-03-03 at 06:53, Sebastian Ley wrote: Hello, will the configure switch --enable-threads in glib one time enabled, the other time disabled produce two binary compatible libraries or will they have a different ABI? Please CC me in your replies, since I am not subscribed. They

Quick newbie question

2003-03-04 Thread Ben LeMasurier
Hey everyone, I am just starting to get into GTK+ programming, So far I am doing pretty well but I am stuck at a certain point. I want to have a text entry and then a button to submit the information - lets just say when you hit submit, it pops up a new window that

CellRenderText properties question.

2003-03-04 Thread Carl B. Constantine
The Gnome 2.0 porting docs contain the following information on the GtkCellRender widget (under new widgets in the docs): * Cell renderer properties can be set per-renderer or per-cell (based on data in the model). So for example, the text renderer has a foreground property for the foreground

Re: Quick newbie question

2003-03-04 Thread Paul Davis
a text entry and then a button to submit the information - lets just say when you hit submit, it pops up a new window that shows the information you had in the box. My problem is that I can't find out how to access the data from the text entry, once the clicked signal is received from the

Re: CellRenderText properties question.

2003-03-04 Thread Diego Zuccato
Carl B. Constantine wrote: ...Also, with GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. For example, you can bind the text property on the cell renderer to a string value in the model, thus rendering a different string in each row of the GtkTreeView. When you add a

Re: CellRenderText properties question.

2003-03-04 Thread Sven Neumann
Hi, Carl B. Constantine [EMAIL PROTECTED] writes: However, I can't really find any code examples of how to do anything suggested in these docs. For example, I have a GtkTextView that only has a single column in it. When I click a button in my window, I want to find out the current selection

Re: CellRenderText properties question.

2003-03-04 Thread Carl B. Constantine
* Diego Zuccato ([EMAIL PROTECTED]) wrote: Carl B. Constantine wrote: ...Also, with GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. For example, you can bind the text property on the cell renderer to a string value in the model, thus rendering a different string

Re: CellRenderText properties question.

2003-03-04 Thread Sven Neumann
Hi, Carl B. Constantine [EMAIL PROTECTED] writes: Thanks for the reply. That confirms what I suspected, but IMHO very bad design as it creates extra overhead for memory and storage in the TreeModel (ListStore in this case) instead of being able to determine the property programatically. What

Re: CellRenderText properties question.

2003-03-04 Thread Carl B. Constantine
* Sven Neumann ([EMAIL PROTECTED]) wrote: the API reference is not exactly the place where you'd look for code examples. The gtk-demo as found in the demos directory of the GTK+ source tree seems like a good place to look for such examples. I didn't look there, I looked at the various examples

Re: gtk_entry_get_text() - having problems with return type

2003-03-04 Thread Raymond Wan
Hi, On Wed, 5 Mar 2003, Ben LeMasurier wrote: warning: assignment makes pointer from integer without a cast gethostbyname() requests a char * and gtk_entry_get_text() returns G_CONST_RETURN gchar* According to the glib docs, a G_CONST_RETURN gchar* is typedef'ed to a char* (See

Re: GtkTextView Questions -- please help! =]

2003-03-04 Thread Raymond Wan
Hi, On Mon, 3 Mar 2003, Arash Nikkar wrote: 1) I have created a window, with 2 textviews within it. Now I initialized the textviews the same way, but the top one is about 1/3 of the window, while the bottom is 2/3. I was wondering how i could set them to be the same length. This

checking for a blank box?

2003-03-04 Thread Brandon
hello, What value do I compare the output of gtk_editable_get_text() with in order to know if the entry box I'm getting text from is empty or not? I'm using an if statement and have tried to do If (gtk_editable_get_text(entry,0,-1) == NULL) and it won't make the match even when I don't input

Re: gtk_entry_get_text() - having problems with return type

2003-03-04 Thread Ben LeMasurier
Well, I tried to do an strcpy() on the string but I am still getting a segfault when I try to access it, I also get the same compile time error as before - I don't understand why it is telling me assignment makes pointer from an integer either. better get the coffee out, this might be a long

Re: CellRenderText properties question.

2003-03-04 Thread Owen Taylor
On Tue, 2003-03-04 at 17:51, Sven Neumann wrote: How can I change attributes on a single cell without having extra data in my model or do I really need the extra data in my model? I'm sure I'm missing something obvious but the docs are confusing. Also, storing extra attribute data in my

can you do multiple g_signal_connects?

2003-03-04 Thread Arash Nikkar
Hi Everyone, I want multiple methods to be called when a widget is destroyed. So I was wondering if this would work: g_signal_connect (window, destroy, G_CALLBACK (free_buffers), temp); g_signal_connect (window, destroy, G_CALLBACK (gtk_widget_destroyed), window); so when the window is