Virtual functions and chaining up

2006-07-26 Thread Nikhil Dinesh
Hi, 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: /* declaration in maman-bar.h. */ struct _MamanBarClass { GObjectClass p

Re: How to switch focus to another UI ?

2006-07-26 Thread gtk-app-devel-list
On 26-Jul-2006 Tristan Van Berkom wrote: > [EMAIL PROTECTED] wrote: >> Hi all, > [...] > > This should do it: > http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-grab-focu > s but. but. but... I already HAVE the focus call (it's in the callback in the code i attached), and TH

HandleBox woes

2006-07-26 Thread Michael Ekstrand
I've got a toolbar that's in a handlebox. However, when I drag the toolbar to be floating, the window shrinks down and all the toolbar items are placed in a drop-down menu on the now-floating toolbar. I've tried marking my toolbar items as important, but that hasn't changed anything. Why

Re: How to replace a image ?

2006-07-26 Thread Tristan Van Berkom
Seongsu Lee wrote: > Hello, > > Follow is the code to show image A. > > image = create_pixmap(win_background, FILENAME); > gtk_widget_show(image); > gtk_box_pack_start(GTK_BOX(vbox), image, TRUE, TRUE, 0); > > I added image widget with image A in my app. I want to > replace the image A to

How to replace a image ?

2006-07-26 Thread Seongsu Lee
Hello, Follow is the code to show image A. image = create_pixmap(win_background, FILENAME); gtk_widget_show(image); gtk_box_pack_start(GTK_BOX(vbox), image, TRUE, TRUE, 0); I added image widget with image A in my app. I want to replace the image A to a image B. How can I do that? -- Seo

Multiline text

2006-07-26 Thread Steven Boyls
I'm using a multiline text widget and I would like to limit the length of text on each line. Can someone share how I can accomplish this? Thanks, Steve ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listi

Re: How to switch focus to another UI ?

2006-07-26 Thread Tristan Van Berkom
[EMAIL PROTECTED] wrote: > Hi all, [...] This should do it: http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-grab-focus I may be wrong... maybe you have to also ensure that the toplevel window also has focus... Cheers, -Tristan ___

How to switch focus to another UI ?

2006-07-26 Thread gtk-app-devel-list
Hi all, I have a (what seems to me) to be a simple application that I just, for the life of me, I cannot get to work. I have 2 small UI's, both in one application. one UI, is, for example, a button box. It is unimportant, except that it has widgets that you click. a "click callback" is attached t

Re: dialogue and threads

2006-07-26 Thread Tristan Van Berkom
Yves Willems wrote: > Hi all, > > > > I have a multi threaded GTK app and want to show an error dialogue for an > error that occurred on a thread different then the main thread. > > When showing the dialogue on this thread, the 'waiting for OK' blocks the > main thread and therefore freezes my

dialogue and threads

2006-07-26 Thread Yves Willems
Hi all, I have a multi threaded GTK app and want to show an error dialogue for an error that occurred on a thread different then the main thread. When showing the dialogue on this thread, the 'waiting for OK' blocks the main thread and therefore freezes my GUI. Can anyone give me a hint ho

Re: Allow a GtkWindow to prevent losing focus

2006-07-26 Thread Atanas Atanasov
I have been trying to do something similar - the behaviour of modal windows under Windows. However this solution seemed too fragile because you never know what window manager will be running beneath. After all most of these functions just pass on hints to the window manager, and the behaviour depen

Re: Allow a GtkWindow to prevent losing focus

2006-07-26 Thread Yeti
On Wed, Jul 26, 2006 at 10:42:10AM +0200, Mardy wrote: > I made a subclass of GtkWindow for my particular needs, among which > there is this important one: when the user clicks on another window > of the same class in the same application, the window which currently > owns the focus should be not

Allow a GtkWindow to prevent losing focus

2006-07-26 Thread Mardy
Hi all, I made a subclass of GtkWindow for my particular needs, among which there is this important one: when the user clicks on another window of the same class in the same application, the window which currently owns the focus should be notified of the event, and if needed be able to prevent th