Previous Up Next

KPlug Glade Tutorial

Glade Widgets in More Detail: Gtk+ Additional

This listing shows most of the additional Gtk+ widgets found with Glade. Please see the previous page for general notes on how to use the widgets and refer to them in callbacks.c

Note that the following is NOT an exhaustive list of widgets. There are widgets available with different libraries that aren't included in Glade. Also some of the additional widgets are not included here, as I am not personally familiar with them. Finally not all the functions for each widget are listed here. See the documentation for more information on them.

Gtk+ Additional
ImageNamePurposeFunctions and Considerations
Gtk Horizontal ScaleHorizontal Scale creates a horizonal sliderYou 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 ScaleVertical Scale creates a vertical sliderThis works just like the horizontal scale, but vertically.
Gtk Horizontal RulerHorizontal Rulercreates a horizontal rulerThis widget simply puts up a horizontally aligned ruler. You can set the scale of the ruler as you please.
Gtk Vertical RulerVertical Ruler creates a vertical rulerThis is just like the horizontal ruler widget, but vertically aligned.
Gtk Alignment Widget Alignment Widgetcreates a widget in which alignment can be set for child widgetsThis 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 BoxEvent Box this widget catches an eventThis widget allows you to catch an event for another widget, which doesn't have its own window.
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 CalendarCalendar creates a calendar widgetYou 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 LayoutLayout creates a layout widgetThis seems to be a container widget where you can lay out other widgets. I'm not experienced with it, myself.
Gtk Aspect FrameAspect 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.
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.
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.
Gtk ArrowArrow creates an arrowThis is just a little display arrow which points in one of the four cardinal directions.

Previous Up Next