LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How do I color my frame in GtkWindow? (https://www.linuxquestions.org/questions/programming-9/how-do-i-color-my-frame-in-gtkwindow-663814/)

kalleanka 08-19-2008 07:55 AM

How do I color my frame in GtkWindow?
 
I use a GtkWindow with GTK_WINDOW_POPUP(thats what I need) and everything works exept that I cant figure out how to color the borders (window frame). In gtk documentation ther is explaind that with gtk_window_set_has_frame () it will have a "frame" window around window->window, accessible in window->frame. So what class is window->frame? I cant find anything exept for GtkFrame but I think thats another thing. I use X11 and only X11. Any Idees? Any leeds are welcome.

http://www.gtk.org/api/2.6/gtk/GtkWi...-set-has-frame

Agrouf 08-19-2008 08:17 AM

If you only use X11, you shouldn't call gtk_window_set_has_frame, as the documentation says. It is a special purpose function for the framebuffer port of gtk.
Are you trying to change the color of the window's decoration (Title bar and stuff)? If so, maybe you should just not use WM's decoration at all and draw your own?


All times are GMT -5. The time now is 02:56 AM.