Re: How can I make my TOPLEVEL window always on top?
- From: "Brian J. Tarricone" <bjt23 cornell edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: How can I make my TOPLEVEL window always on top?
- Date: Fri, 20 Aug 2004 17:15:00 -0700
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]