LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2008, 07:55 AM   #1
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
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
 
Old 08-19-2008, 08:17 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
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?

Last edited by Agrouf; 08-19-2008 at 08:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how does pixel aspect relate to frame size in mplayer/how do you find vid frame size? BrianK Linux - General 3 10-31-2007 01:08 PM
Frame by Frame Playback Hioushi Linux - Desktop 2 10-18-2006 06:08 PM
Frame-by-frame video jeffChuck Linux - Software 0 10-12-2004 10:04 PM
calling a frame from another frame : JAVA randomx Programming 0 10-07-2004 02:49 PM
[COLOR=red]ENCORE WIRELESS PCI Card 802.11b [/COLOR] enrique145 Linux - Hardware 3 07-07-2004 02:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration