Re: Setting parent to an applet
- From: Nils Philippsen <nils wombat dialup fht-esslingen de>
- To: John Kodis <kodis jagunet com>
- cc: Gnome List <gnome-list gnome org>
- Subject: Re: Setting parent to an applet
- Date: Mon, 23 Aug 1999 17:17:57 +0200 (CEST)
On Mon, 23 Aug 1999, John Kodis wrote:
> I've written a simple applet that contains only a labelled button.
> When this button is clicked, a dialog pops up. This all works fine.
> I'd like to parent the dialog to the applet so that my window manager
> will place the dialog near its parent applet. I'm trying to use:
>
> gnome_dialog_set_parent(GnomeDialog *dialog, GtkWindow *parent)
>
> but I can't figure out what to pass as the parent window in a case
> like this where the parent is an applet. None of the existing Gnome
> applets do this, so my usual "grep the sources" technique doesn't help.
You want
gtk_window_set_position (GtkWindow *window, GtkWindowPosition position);
and
GTK_WIN_POS_MOUSE
as the position parameter.
Bye,
Nils
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nils Philippsen @college: nils@fht-esslingen.de
Vogelsangstrasse 115 @home: nils@wombat.dialup.fht-esslingen.de
D 70197 Stuttgart phone: +49-711-6599405
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence. -- Edsger W. Dijkstra
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]