tailieunhanh - apress foundations_of gtk plus development 2007 phần 4

Tham khảo tài liệu 'apress foundations_of gtk plus development 2007 phần 4', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | CHAPTER 5 DIALOGS 157 After learning about the built-in dialogs you learned about multiple types of built-in dialogs provided by GTK Message dialog GtkMessageDialog Provide a general message error message warning or simple yes-no question to the user. About dialog GtkAboutDialog Show information about the application including version copyright license authors and others. File chooser dialog GtkFileChooserDialog Allow the user to choose a file choose multiple files save a file choose a directory or create a directory. Color selection dialog GtkColorSelectionDialog Allow the user to choose a color along with an optional opacity value. Font selection dialog GtkFontSelectionDialog Allow the user to choose a font and its size and style properties. The last section of this chapter showed you a widget called GtkAssistant which was introduced in GTK . It allows you to create dialogs with multiple stages. It is important to note that assistants are not actually a type of GtkDialog widget but are directly derived from the GtkWindow class. This means that you have to handle these by connecting signals in the main loop instead of calling gtk_dialog_run . You now have a firm understanding of many important aspects of GTK . Before we continue on to more advanced widgets the next chapter will give you a thorough understanding of GLib. Chapter 6 will cover many GLib data types idle functions timeouts process spawning threads dynamic modules file utilities and timers as well as other important topics. CHAPTER 6 Using GLib N ow that you have a reasonable grasp of GTK and a number of simple widgets it is time to move to another library. GTK depends on GLib a general-purpose library that provides many kinds of utility functions data types and wrapper functions. In fact you have already used some aspects of GLib in previous chapters. GLib can be run independently of any other library which means that some of the examples in this chapter do not require the GTK GDK and Pango .