From e686b8655bf2bcf3aec61028050d96a6b66041cd Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 13 Nov 2009 23:20:38 +0100 Subject: [PATCH] Remove unused function katze_preferences_add_option --- katze/katze-preferences.c | 38 -------------------------------------- katze/katze-preferences.h | 8 -------- 2 files changed, 46 deletions(-) diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c index 671eee87..8dd899b8 100644 --- a/katze/katze-preferences.c +++ b/katze/katze-preferences.c @@ -392,41 +392,3 @@ katze_preferences_add_widget (KatzePreferences* preferences, 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); -} diff --git a/katze/katze-preferences.h b/katze/katze-preferences.h index 39e46d41..63bd4843 100644 --- a/katze/katze-preferences.h +++ b/katze/katze-preferences.h @@ -65,14 +65,6 @@ katze_preferences_add_widget (KatzePreferences* preferences, GtkWidget* widget, const gchar* type); -void -katze_preferences_add_option (KatzePreferences* preferences, - gpointer object, - const gchar* property, - const gchar* label, - GtkWidget* widget, - const gchar* type); - G_END_DECLS #endif /* __KATZE_PREFERENCES_H__ */ -- 2.39.5