Re: [gtk-list] Re: Icon window
- From: David Raufeisen <lamer fortyoz org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Icon window
- Date: Tue, 4 Jan 2000 06:10:54 -0800 (PST)
XWMHints mywmhints;
GtkWidget *window;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 56, 56);
box = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (window), box);
gtk_widget_show(box);
gtk_widget_show (window);
mywmhints.initial_state = WithdrawnState;
mywmhints.icon_window = GDK_WINDOW_XWINDOW(box->window);
mywmhints.icon_x = 0;
mywmhints.icon_y = 0;
mywmhints.window_group = GDK_WINDOW_XWINDOW(window->window);
mywmhints.flags=StateHint | IconWindowHint | IconPositionHint |
WindowGroupHint;
XSetWMHints(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(window->window),
&mywmhints);
i add stuff to the event box.
thats what i did. works. doubt its very correct.
On Tue, 4 Jan 2000, Alexey Vyskubov wrote:
> > Dockable utilities are window manager specific, AFAIK.
>
> No. There is such Xlib thing as an icon window. Window Maker just make use of
> it.
>
> >GNOME allows you to create applets for their panel, Window Maker has a special type of docking too (when are those guys dropping their own widget set and use GTK+ instead?).
> >
> > So, it's not a GTK+ feature at all, it depends on your window manager.
> >
>
> It's Xlib feature and I would like to know the Right Way to use it
> in GTK application.
>
> Well, if I program with Xlib I can write something like
>
> Window mainWindow, myIconWindow;
> Display dpy;
> XWMHints *wm_hints;
>
> ...
>
> wm_hints = XAllocWMHints();
> wm_hints->flags = IconWindowHint | StateHint;
> wm_hints->icon_window = myIconWindow;
> wm_hints->initial_state = WithdrawnState;
>
> XSetWMHints(dpy, mainWindow, wm_hints);
>
> And mainWindow will be hidden; instead we will see myIconWindow -- and
> *if I use WindowMaker* I have a possibility to dock it.
>
> All I want to know -- how to make myIconWindow not X Window but GTK Window.
>
> --
> Alexey Vyskubov
> (at home)
> Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]