Question
How do i use the style object?

Answers

Each widget has an associates style object that can be manipulted. The basic method is get_style(), which returns a GtkStyle object, and the associated set_style(style_object).
The style is shared between widgets of the same type (XXX: is this true?). To change the style of only one widget in your application, the style object offers a copy() method, which returns a new copy of the GdkStyle, which can me changed and set_style() back to the desired widget.
All attributes of a style can be get and set independently by direct access. The most important attributes of style are the colours (see faq 4.6):

fg
bg
light
dark
mid
text
base
black
white

And the font and bg_pixmap attributes.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q How do you set price limits in sd?
  • Q Expand IFD
  • Q Where do you see yourself in 1 years time?
  • Q What are CD4 lymphocytes? What is the relationship between these cells and HIV? How does HIV replicate?
  • Q Are you a good time manager?
  • Q Substitute digits for the letters to make the following addition problem true. W H O S E T E E T H A R E + A S ------------------- S W O R D S Note that the leftmost letter can't be zero in any word. Also, there must be a one-to-one mapping between digits and letters. e.g. if you substitute 3 for the letter H, no other letter can be 3 and all other H in the puzzle must be 3.
  • Q Which is the highest peak in the Western Ghats and South India, at an elevation of 2695 meters, and a topographic prominence of 2479 meters?
  • Q What is the difference between widget & gadget in XWindows?
  • Q How did the cranberry get it's name?
  • Q Write Short Essay on Nongel based techniques for plant genotyping
  • Q Is a hole a fundamental particle in an atom?