[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: How can I make my TOPLEVEL window always on top?
From: "Brian J. Tarricone" <bjt23 () cornell ! edu>
Date: 2004-08-21 0:15:00
Message-ID: 41269404.6080601 () cornell ! edu
[Download RAW message or body]
i believe what you're looking for is gtk_window_set_keep_above(). see
the API docs for details
(http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html).
-brian
Rocky Zhang wrote:
>Hi,
>
>I'd like my application always on top of other application window (
>Similar as I click the left top corner of the window, then select "On
>Top" ). How can I realize it? I saw in gtk/gtkwindow.h there is a
>function called:
>
>gboolean gtk_window_has_toplevel_focus (GtkWindow
>*window);
>
>Can I use it to determine if the window is on top or not? Another
>function is:
>
>void _gtk_window_set_has_toplevel_focus (GtkWindow *window,
>gboolean has_toplevel_focus);
>
>I use it in my source code, when compile, it always said link error.
>
>My compile command is: gcc test_app.c -o test_app `pkg-config gtk+-2.0
>--cflags --libs`
>
>And it says:
>/tmp/ccd8wLTs.o(.text+0x8e1): In function `main':
>: undefined reference to `_gtk_window_set_has_toplevel_focus'
>collect2: ld returned 1 exit status
>
>How can I do with it? Is it the correct function to set the window "On
>Top" among all the opening windows?
>
>Thanks.
>
>Rocky
>
>
>
>_______________________________________________
>gtk-app-devel-list mailing list
>gtk-app-devel-list@gnome.org
>http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
>
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic