Re: using select() with gtk_main()

2007-01-13 Thread Edward Catmur
On Sun, 2007-01-14 at 00:57 +1000, kimet wrote: > I want to write an gtk based app that monitors the serial port and dumps > data to a textview, while at the same time responding to gui callbacks > (classic gtk functionality). So do I need to: > > (1) somehow set up a gtk signal handler for the se

Re: Do we have a date control widget in gtk??

2007-01-08 Thread Edward Catmur
On Mon, 2007-01-08 at 15:33 +0530, Sarath Potharaju wrote: > I am relatively new and learning GTK, i am looking for a date control widget > which can do the following functionality, > > The date control will provide an indication of current date and launches a > popup which allows the user to pick

Re: Tooltip per GtkClist row

2007-01-03 Thread Edward Catmur
On Thu, 2007-01-04 at 09:00 +0530, Preeti Joshi wrote: > Hi, > > Is it possible to add tooltip to individual GtkCList rows? Um, you do realise GtkCList is deprecated? You should be using GtkTreeView with a GtkListStore. That said, the answer to your question is: Not yet. See http://bugzilla.gno

Re: Learning Gtk+ from C#

2006-12-08 Thread Edward Catmur
On Thu, 2006-12-07 at 20:27 +0100, Jesper K. Pedersen wrote: > Having started to just make a small calculator as a "getting started" > project I have run into a small issue with the text entry kind of > widget. > > I have disabled entering data into the entry (as I am to limit content > to only n

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-01 Thread Edward Catmur
On Thu, 2006-11-30 at 15:46 -0800, Daniel Yek wrote: > Well, with g_utf8_validate(), it is trivial to implement a function that > escape non-UTF-8 bytes to Hex. However, I then found out that TreeView, or > more likely Pango, would unescape the %xx sequence (undo my attempt to help > it) and cho

Re: Properties, what are they for? Wigets writing doubts.

2006-09-14 Thread Edward Catmur
On Thu, 2006-09-14 at 18:30 +, Alexandre wrote: > Hi everyone. > > I'm beginning in widget's writing, and I want to know what is the > purpose of the widgets properties. Because, when I look at the gtk > widgets, they have a lot of properties, but this properties can be > changed with th

Re: why???

2006-09-08 Thread Edward Catmur
On Thu, 2006-09-07 at 19:35 -0700, dagang001 wrote: > #include > > typedef struct { > gchar * name; > gint shoe_size; > gint age; > } Person; > > > int main(int argc, char** argv) { > Person *fred = g_new(Person, 1); > GList *list = NULL; > > gint num,i; > gchar *mi

Re: Musings on the proper use of g_error and GError

2006-09-02 Thread Edward Catmur
On Sat, 2006-09-02 at 13:19 -0400, Philip Kovacs wrote: > Looking at the glib code itself, e.g. in gmem.c: in the g_malloc() > function, > if the memory was not allocated as expected, glib does this: > > g_error ("%s: failed to allocate %lu bytes", G_STRLOC, n_bytes); > > Clearly this is not a

Re: Search for a widget that can completion and option_box

2006-08-30 Thread Edward Catmur
On Wed, 2006-08-30 at 16:36 +0200, Bernd Demian wrote: > Hi, > excuse my bad english! We are saerching for a widget that combined the > gtk_entry_completion with gtk_combo_box_entry, but we have no success. > An example is the url widget in firefox. It has more than one > cell_renderer, has > comp

Re: Single click with eggstatusicon.c: possible?

2006-08-30 Thread Edward Catmur
On Wed, 2006-08-30 at 11:05 +0200, Colossus wrote: > Hi, > > I have an icon in the systray with eggstatusicon.c. I connected the > "activated" signal to it and I can receive double click events. > > Is it possible to detect single click also? I know I can do it with > eggtrayicon.c but using it

Re: GObject exposure

2006-08-22 Thread Edward Catmur
On Mon, 2006-08-21 at 20:04 -0400, Philip Kovacs wrote: > I have a question related to whether or not I need to go to more deliberate > lengths to hide/shield the gobject's I am producing from the users of my > library. > > The api's I have implemented deliver (what I wish to be) opaque pointers

Re: Sockets in GTK+?

2006-08-22 Thread Edward Catmur
On Mon, 2006-08-21 at 19:19 -0400, Samuel Cormier-Iijima wrote: > Note that however GNet does NOT use GObject, it rolls its own object > type... I kinda wanted a twisted-like framework so that I could for > example subclass a GNetServer or otherwise connect signals to it to > respond to network eve

Re: Fullscreen application running?

2006-08-18 Thread Edward Catmur
On Fri, 2006-08-18 at 15:13 +0530, Unique User wrote: > Hi All, > I am writing an application which pops up a message at random > interval. Before showing the message, I want to check whether a full > screen application(movie,game etc.) is running. How can I do this? I am > writing

Re: Exiting GTK main event loop from a plugin application

2006-08-12 Thread Edward Catmur
Before calling gtk_init(), save the X error handlers with XSetErrorHandler(NULL), XSetIOErrorHandler(NULL); after you're finished, restore them. Thus: void my_plugin() { int (*old_handler) (Display *, XErrorEvent *) = XSetErrorHandler (NULL); int (*old_io_handler) (Display *, XErro