]> spindle.queued.net Git - midori/commitdiff
Remove unused function katze_preferences_add_option
authorChristian Dywan <christian@twotoasts.de>
Fri, 13 Nov 2009 22:20:38 +0000 (23:20 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 13 Nov 2009 22:20:38 +0000 (23:20 +0100)
katze/katze-preferences.c
katze/katze-preferences.h

index 671eee870bb098e4c1a64b20d5b35ce61f6f0e6e..8dd899b8b9413855c58b1b3e5b6ea88b37c404f9 100644 (file)
@@ -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);
-}
index 39e46d41f9aff4697545a3d4b060ce88e93c1aab..63bd48433c61a56a17ca13ab9c098951b1122e31 100644 (file)
@@ -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__ */