Previous Next

The Widgets in More Detail: Deprecated and Changed

These widgets are either deprecated by the gtk+/gnome developers, and therefore not to be used in new code, or have gone missing between Glade1 and Glade 2. The missing widgets may have moved to new libraries, when I find out, I will note it here.

Deprecated
ImageNamePurposeFunctions and Considerations
Gtk List WidgetList creates a list, each element in the list can be manipulated Common signals here are select_child, selection_changed, unselect_child. Functions include gtk_list_insert_items(), gtk_list_append_items(), gtk_list_remove_items(), gtk_list_select_item(), etc.
Gtk Columned ListColumned List A multiple column listThis widget allows lists in columns (ie a file selection list which shows ownership and creation data as well as filename). You will need to specify the select mode in the properties window. This mode indicates whether only one or many items can be selected at once from the window (default is single). GtkCList has many signals and is a complicated widget. Please see the Gtk+ Reference Manual,for more details.
Gtk Columned TreeColumned Tree a multiple columned tree Once mastered, this widget is actually quite useful, or was. It is quite complicated however, please see the references if you need to use it with legacy software.
Preview Preview a preview widget I never used this before it was deprecated, so check the reference.
Gnome Dialog BoxDialog Boxcreates a dialog box, with premade buttons, to gnome standard You will have to associate handlers to the buttons, you can change the labels and icons on the buttons as well, or remove one or two if you wish.
Gnome Message BoxMessage Boxcreates a standardized message boxYou will need to add whatever message, choose the type of message (warning, information etc), and deal with the signal on the 'ok' button.
Gnome Property BoxProperty Boxcreates a standardized popup window to deal with various program properties You will have to handle the signals on the buttons at the bottom of the box, as well as those that you might create within the box. As with the other gnome widgets, this is created from gtk widgets, so see above on buttons etc.
Gnome PixmapGnome Pixmap loads and displays pixmaps from various sourcesThis widget will load, resize and set up various types of image correctly.
Missing
Gtk Label with AcceleratorLabel with Acceleratorcreates a label with an acceleratorThe label shows an accelerator key to the right of the entry, (ie Save Ctrl-S). It's used in menus and such.
Gtk Image WidgetImage Widget creates a widget in which can be placed an image This widget holds an image which can be manipulated by an application.
Gnome Number EntryGnome Number Entrycreates a number entry widget with a calculator button This widget has a calculator button, and lets the user put the results of the computation straight into the entry widget. It doesn't do any limit checks. Use gnome_number_entry_get_number() to grab the number.
Gnome DialDial creates a dial widgetThis is an analog dial, much like an old radio tuner dial. It can be set to view only, or the user can manipulate it to a value. Use gtk_dial_get_percentage(), gtk_dial_set_percentage(), gtk_dial_set_value(), and gtk_dial_get_value() to deal with the numbers.
Gtk ClockClock creates a digital clock that counts up or down or shows realtime You can set the format of the display in the Glade properties window. To use it as a timer set the seconds, and interval in the Properties window. Gtk_clock_start() will start the clock moving, you'll have to call this in some other handler (ie an ok button, or whatever), gtk_clock_stop() will stop it.
Gnome CalculatorGnome Calculatorcreates a calculator widgetYou can hook to the result upon the result_changed signal. Use the gnome_calculator_get_result() function to actually grab it.
Gnome LessGnome Less creates a widget that shows a file or a streamThis widget is like a unix 'more' command. The user can view a text file. The font can be specified in the Glade Properties window, use gnome_less_show_file() to show a file, gnome_less_show_filestream() to show a filestream and so on.
Gnome Paper SelectorGnome Paper Selectorcreates a paper selection widget, for printing In your code, find the widget and use the various gnome_paper_selector_get_*() functions to link the selections to your printing code.
Gnome AnimatorGnome Animatorcreates a widget to add animation to applications See the documentation as I am not familiar with this one.

Previous Next