Set Focus to GtkEntry when GtkNotebook Tab selected

2013-06-26 Thread Thomas A. Moulton
I have the following object: GtkWindow GtkNotebook GtkBox GtkScrolledWindow, GtkTextArea GtkEntry I am trying to have the Entry get focus when I change Tabs When the program starts it does focus on Tab 1's entry but I can not get it to keep focus without clicking the e

eclipse problem

2013-06-14 Thread Thomas A. Moulton
I this is the wrong list, but I am active here... so why not start here While editing the project C/C++ Build settings I somehow got the window to shrink horizontally to be a single vertical bar. If I hit ESC the window closes. The edges won't drag Anyone seen this before? Tom __

Re: GtkScrolledWindow containing GtkTextView containing a TextBuffer can't keep at bottom of Buffer

2013-06-10 Thread Thomas A. Moulton
That did it! Thanks! On 06/10/2013 08:44 AM, Colomban Wendling wrote: Hi, Le 10/06/2013 12:26, Thomas A. Moulton a écrit : On 06/09/2013 05:21 PM, Thomas A. Moulton wrote: Ok here is a single file example of my code... it works the same way it does in my larger project Any suggestions

Re: GtkScrolledWindow containing GtkTextView containing a TextBuffer can't keep at bottom of Buffer

2013-06-10 Thread Thomas A. Moulton
On 06/09/2013 05:21 PM, Thomas A. Moulton wrote: Ok here is a single file example of my code... it works the same way it does in my larger project Any suggestions would be GREATLY appreciated! tom What happens is when you enter enough lines of text to fill the window the scrolled window

Re: GtkScrolledWindow containing GtkTextView containing a TextBuffer can't keep at bottom of Buffer

2013-06-09 Thread Thomas A. Moulton
On 06/09/2013 09:21 AM, Thomas A. Moulton wrote: I see a lot of questions about this and I have not found an answer that works for me. I create the chat window like this: The printf above at times tells me the objects are not valid, but the addresses have not changed. Also the TextBuffer

GtkScrolledWindow containing GtkTextView containing a TextBuffer can't keep at bottom of Buffer

2013-06-09 Thread Thomas A. Moulton
I see a lot of questions about this and I have not found an answer that works for me. I create the chat window like this: CHAT *ChatNew(char *player) { CHAT *chatlog; GtkBox *chat; GtkTextBuffer *buf; GtkTextView *text; GtkEntry *entry; GtkScrolledWindow *scroll; Gtk

Re: GtkEntry defining handler for activate (or any) signal

2013-06-05 Thread Thomas A. Moulton
Well it is easy... g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL); tom On 06/05/2013 07:23 AM, Thomas A. Moulton wrote: Things are progressing well (thanks for all the help btw) I have some fixed and dynamic chat boxes and using GtkEntry for the input.

GtkEntry defining handler for activate (or any) signal

2013-06-05 Thread Thomas A. Moulton
Things are progressing well (thanks for all the help btw) I have some fixed and dynamic chat boxes and using GtkEntry for the input. With the fixed boxes I used glade to create them and defining a function for the 'activate' signal was simple, but when creating the same windows by hand I don't

GtkBox vs GtkGrid

2013-06-02 Thread Thomas A. Moulton
Am I missing something? If I use GtkBox it seems that once I add a child I can't get access to it's address any more (GtkWidget *) So if I create a box with some things in it in glade I really can't do much with them. (Other than giving them specific names and using the builder object to loo

glade and C code

2013-05-27 Thread Thomas A. Moulton
ok here's a simple question... If I have c code that creates all the widgets I can get the pointers to them as needed. How can I get the GtkNotebook *pointer when I create things with glade? If there a function I can call to scan the created objects by name? Tom _

Re: GIO - Simple socket Client - Need suggestions on which API set to use (or sample code)

2013-05-25 Thread Thomas A. Moulton
With windows support only partially completed (it says so everywhere) The big question is now: What is the status of GIOChannel support on windows? specifically the APIs: g_io_channel_windows_new g_io_channel_set_encoding g_io_channel_set_buffered g_io_add_watch g_io_channel_unref g_io_channe

Re: GIO - Simple socket Client - Need suggestions on which API set to use (or sample code)

2013-05-25 Thread Thomas A. Moulton
Well I think from the archives I saw mention of GIOChannel, so gave it a try. case CONNECT: sock = socket_connect(host, 4321); if (sock < 0) { fcm->State = OFFLINE; break; } fcm->iochannel = g_io_channel_uni

GIO - Simple socket Client - Need suggestions on which API set to use (or sample code)

2013-05-24 Thread Thomas A. Moulton
Starting a new program and I would like some portability between Linux and windows (mac? others) so I am looking at GTK3 and to be (more)portable I guess I need to rewrite my socket handling code (C) since I can't use my main/select loop... I have been looking at the APIs for almost a week and