From gtk-app-devel Fri Aug 20 23:01:00 2004 From: Rocky Zhang Date: Fri, 20 Aug 2004 23:01:00 +0000 To: gtk-app-devel Subject: How can I make my TOPLEVEL window always on top? Message-Id: <1093042860.5215.13.camel () norma ! userful ! ca> X-MARC-Message: https://marc.info/?l=gtk-app-devel&m=109304290820913 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