Previous Next

The Widgets in More Detail: Gtk+ Additional

Note that the following is NOT an exhaustive list of widgets. There are widgets available with different libraries that aren't included in Glade. Not all the functions for each widget are listed here. For these please refer to the pages linked to in the library section of this tutorial.

Gtk+ Additional
ImageNamePurposeFunctions and Considerations
Gtk Horizontal Scale Horizontal Scale creates a horizonal slider You can use this to allow the user to select a value from a range, by sliding the scale bar. It works much like a spin button, you can set min and max, original value, step increment and such.
Gtk Vertical Scale Vertical Scale creates a vertical slider This works just like the horizontal scale, but vertically.
Gtk Horizontal Ruler Horizontal Ruler creates a horizontal ruler This widget simply puts up a horizontally aligned ruler. You can set the scale of the ruler as you please.
Gtk Vertical Ruler Vertical Ruler creates a vertical ruler This is just like the horizontal ruler widget, but vertically aligned.
Gtk Alignment Widget Alignment Widget creates a widget in which alignment can be set for child widgets This is a container widget, in which you can set the location of the child widget exactly (based on the size of the container widget).
Gtk Event Box Event Box this widget catches an event This widget allows you to catch an event for another widget, which doesn't have its own window.
Gtk Calendar Calendar creates a calendar widget You can get the date the user selects with gtk_calender_get_date(). You can also have it mark days, and so on, using the various calendar signals like day_selected, etc.
Gtk Progress Bar Progress Bar A bar that shows the progress of some event This bar can be set to show either activity (ie a bar just moving back and forth), or a percentage of the completion of something. If you use the percentage mode, you'll have to update the bar with gtk_progress_set_percentage() or gtk_progress_set_value().
Gtk Layout Layout creates a layout widget This seems to be a container widget where you can lay out other widgets. I'm not experienced with it, myself.
Gtk Aspect Frame Aspect Frame creates a frame in which the child widget keeps its aspect This widget is a container which controls the aspect of the child widget (ie widget placed within it). You can set the aspect ratio from the properties window in Glade.
Popup Menu Icon Popup Menu creates a popup menu This is typically used when the user right clicks on something. The menu is like the pulldown menus used in a menubar, at least from the Glade point of view.
Gtk Arrow Arrow creates an arrow This is just a little display arrow which points in one of the four cardinal directions.
Gtk Curve Gtk Curve a curve that can be changed by the user see the documentation for more, this is a specialized widget which will be moved out of the gtk+ library in the future
Gamma Curve Gamma Curve an editable gamma curve see the documentation for more. This is used in the GIMP to edit gamma curves, and is a specialized widget. It'll be moved from gtk+ eventually into another library.
Horizontal Scrollbar Horizontal Scrollbar a horizontally aligned scrollbar Not much to this widget, it's a scrollbar.
Vertical Scrollbar Vertical Scrollbar a vertically aligned scrollbar Yet another scrollbar.
Gtk Color Selection WidgetColor Selectionthis is the widget that controls color selection This widget is the heart of the color selection dialog window (see Gtk+ Basic widgets in this tutorial). You can use the color_changed signal with it, and gtk_color_selection_get_color(), among other functions.
Gtk Font Selection WidgetFont Selectionthis widget controls font selection This is the heart of the font selection dialog window (see Gtk+ Basic widgets). Use gtk_font_selection_get_font(), gtk_font_selection_get_font_name(), and so on, with it.
Input Dialog Input Dialog a widget to allow configuring devices for the XInput extension see the documentation for gtk+
Custom Widget Custom Widget a placeholder for a custom widget If you are using custom widgets which are not made a part of Glade, you can use this to insert a placeholder for your widget.

Previous Next