gtk_widget_hide (widget);
#endif
}
-
-/**
- * katze_preferences_add_option:
- * @preferences: a #KatzePreferences instance
- * @object: the object to proxy
- * @property: the property to proxy
- * @label: a label, or %NULL
- * @widget: a widget representing an option
- * @type: "filled", "indented", or "spanned"
- *
- * Adds an option to the dialog, with a label.
- *
- * If @label is %NULL, it will be filled in from the property.
- *
- * Since: 0.2.1
- **/
-void
-katze_preferences_add_option (KatzePreferences* preferences,
- gpointer object,
- const gchar* property,
- const gchar* label,
- GtkWidget* widget,
- const gchar* type)
-{
- g_return_if_fail (KATZE_IS_PREFERENCES (preferences));
- g_return_if_fail (G_IS_OBJECT (object));
- g_return_if_fail (property != NULL);
- g_return_if_fail (GTK_IS_WIDGET (widget));
- g_return_if_fail (type != NULL);
-
- if (label)
- katze_preferences_add_widget (preferences,
- gtk_label_new_with_mnemonic (label), "indented");
- else
- katze_preferences_add_widget (preferences,
- katze_property_label (object, property), "indented");
- katze_preferences_add_widget (preferences, widget, type);
-}