Ejemplo n.º 1
0
/**
 * rb_source_get_config_widget:
 * @source: a #RBSource
 * @prefs: the #RBShellPreferences object
 *
 * Source implementations can use this to return an optional
 * configuration widget. The widget will be displayed in a 
 * page in the preferences dialog.
 *
 * Return value: configuration widget
 */
GtkWidget *
rb_source_get_config_widget (RBSource *source,
			     RBShellPreferences *prefs)
{
	RBSourceClass *klass = RB_SOURCE_GET_CLASS (source);

	if (klass->impl_get_config_widget) {
		return klass->impl_get_config_widget (source, prefs);
	} else {
		return NULL;
	}
}