swamigui Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
SwamiguiPref; GtkWidget * (*SwamiguiPrefHandler) (void
); #define SWAMIGUI_PREF_ORDER_NAME void swamigui_register_pref_handler (const char *name
,const char *icon
,int order
,SwamiguiPrefHandler handler
); GtkWidget * swamigui_pref_new (void
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkDialog +----SwamiguiPref
GtkWidget * (*SwamiguiPrefHandler) (void
);
Function prototype to create a GUI preference interface.
Returns : |
The toplevel widget of the preference interface. |
#define SWAMIGUI_PREF_ORDER_NAME 0
Value to use for order parameter of swamigui_register_pref_handler()
to
sort by name. This should be used for plugins and other interfaces where
specific placement in the preferences list is not needed.
void swamigui_register_pref_handler (const char *name
,const char *icon
,int order
,SwamiguiPrefHandler handler
);
Register a preferences interface which will become a part of the preferences widget.
|
Name of the preference interface (shown in list with icon) |
|
Name of stock icon for interface (shown in list with name) |
|
Order of the interface in relation to others (the lower the number the higher on the list, use SWAMIGUI_PREF_ORDER_NAME to indicate that the interface should be sorted by name - after other interfaces which specify a specific value). |
GtkWidget * swamigui_pref_new (void
);
Create preferences dialog widget.
Returns : |
New preferences dialog widget. |