Re: Virtual functions and chaining up

2006-07-27 Thread Yeti
On Thu, Jul 27, 2006 at 02:24:23AM -0400, Nikhil Dinesh wrote: > I'm trying to create my own object hierarchy, and I don't > understand the part in the API reference about virtual > functions and chaining up. To create a virtual public > method, the docs say we need to do something like: > > /* d

Re: Virtual functions and chaining up

2006-07-27 Thread Yeti
On Thu, Jul 27, 2006 at 09:39:08AM +0200, David Nečas (Yeti) wrote: > > Each class has its own class struct which contains all > ancestors's class structs To clarify: The object system keeps an instance of both MamanBarClass and MamanBarSubClass. So the class structs contains all ancestors' clas

panel_applet_get_size() lies

2006-07-27 Thread Neil Bird
First off, I apologise if, this being a GNOME API and not strictly GTK API question, it doesn't belong here, but I couldn't see an equivalent mailing list, and the GNOME list I'm on & tried is more for users than programmers. I have an issue with panel_applet_get_size(); it lies! It r

GtkEntryCompletion with a huge amount of items

2006-07-27 Thread Svaty Krtek
Hello, I want to make a dictionary with posibility of completion like it is in GtkEntry Completion. But the dictionary has more items than is possible to fit into GtkEntry Completion, so I'm looking for the same appearance like GtkEntryCompletion has, but I want to make completion by myself. Can an

Re: GtkEntryCompletion with a huge amount of items

2006-07-27 Thread Daniel Espinosa
You may want to derive a class from GtkEntryCompletion (see the code of it) and reimplement the auto completion callback. May you create your callback (called when the user writes some thing on the entry) and try toshow the completion list from a query in a database, even if it is just a XML file

gtk fork()

2006-07-27 Thread Seongsu Lee
Hello, GTK app A did fork(). There are 2 processes which share one socket descriptor to X. Both of the parent and child process use GTK window. The program die soon after forking because the TCP sequence on the socket to X is invalid. Is there any way to use GTK app both in parent process and

update a textview while the mouse moves over a button

2006-07-27 Thread rupert
I have a small textview which tells/helps the user what to do, so when a user moves his mouse onto a button i'd like to show small message in the textview I am so far that a g_print prints it message on a mouseover, but the buffer is not updated and i get this message: gtk_text_buffer_set_text:

size of an image on a button

2006-07-27 Thread Christopher Backhouse
If I set a button to have an image like this: gtk_button_set_image(GTK_BUTTON(button),gtk_image_new_from_file("fname.svg")); then the button grows to the full size of the image (huge). Using: gtk_widget_set_size_request(button,30,30); I can make the button have a sensible size, but the

Re: size of an image on a button

2006-07-27 Thread Tristan Van Berkom
Christopher Backhouse wrote: >If I set a button to have an image like this: > > > Hi, You can accomplish what you want using a gtkrc file and the pixbuf engine, this way you can set a graphics file for any particular widget by name and it will scale automatically. Cheers,

propagating errors w.r.t. quark/domain visibility

2006-07-27 Thread Philip Kovacs
Is it considered bad form to g_propagate_error() a custom error back to a caller, when the error domain, enum and quark definitions are not visible to the caller? Example: --bar.h-- (an internal module, not seen by the caller) typedef enum { BAR_ERROR_THIS, BAR_ERROR_THAT } BarError;