Tuesday, February 8, 2011

Exercise 2-2 in the GTK book



I'm getting pretty good at schlepping through the API docs to figure out what all these properties are called.

2.2 was about catching signals that happen when a widget property is modified (notify::title) and using g_object_set instead of the canned functions (which I commented out to show what I was reducing them to). I'm not sure yet which I prefer. The book says to use the canned functions when available and the purpose of using g_object_set in this exercise is to prepare for the fact that not every property has a corresponding function to change it.

So that's chapter 2. Chapter 3 starts with more elaborate container widgets for holding more than one thing. Onwards and upwards?

No comments:

Post a Comment