[gtk+/gtk-2-90: 53/161] Remove deprecated GtkRecentChooser functions



commit 22dec245d8f934546ef9027539dbba2497af459f
Author: Christian Dywan <christian twotoasts de>
Date:   Wed Oct 7 18:42:15 2009 +0200

    Remove deprecated GtkRecentChooser functions

 gtk/gtkrecentchooser.c |   66 ------------------------------------------------
 gtk/gtkrecentchooser.h |    5 ---
 2 files changed, 0 insertions(+), 71 deletions(-)
---
diff --git a/gtk/gtkrecentchooser.c b/gtk/gtkrecentchooser.c
index bb84ef5..71a5bcf 100644
--- a/gtk/gtkrecentchooser.c
+++ b/gtk/gtkrecentchooser.c
@@ -607,72 +607,6 @@ recent_chooser_has_show_numbers (GtkRecentChooser *chooser)
 }
 
 /**
- * gtk_recent_chooser_set_show_numbers:
- * @chooser: a #GtkRecentChooser
- * @show_numbers: %TRUE to show numbers, %FALSE otherwise
- *
- * Whether to show recently used resources prepended by a unique number.
- *
- * Deprecated: 2.12: Use gtk_recent_chooser_menu_set_show_numbers() instead.
- *
- * Since: 2.10
- */
-void
-gtk_recent_chooser_set_show_numbers (GtkRecentChooser *chooser,
-				     gboolean          show_numbers)
-{
-  g_return_if_fail (GTK_IS_RECENT_CHOOSER (chooser));
-
-  if (!recent_chooser_has_show_numbers (chooser))
-    {
-      g_warning ("Choosers of type `%s' do not support showing numbers",
-		 G_OBJECT_TYPE_NAME (chooser));
-      
-      return;
-    }
-  
-  g_object_set (chooser, "show-numbers", show_numbers, NULL);
-}
-
-/**
- * gtk_recent_chooser_get_show_numbers:
- * @chooser: a #GtkRecentChooser
- *
- * Returns whether @chooser should display recently used resources
- * prepended by a unique number.
- *
- * Deprecated: 2.12: use gtk_recent_chooser_menu_get_show_numbers() instead.
- *
- * Return value: %TRUE if the recent chooser should show display numbers,
- *   %FALSE otherwise.
- *
- * Since: 2.10
- */
-gboolean
-gtk_recent_chooser_get_show_numbers (GtkRecentChooser *chooser)
-{
-  GParamSpec *pspec;
-  gboolean show_numbers;
-  
-  g_return_val_if_fail (GTK_IS_RECENT_CHOOSER (chooser), FALSE);
-
-  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (chooser),
-		  			"show-numbers");
-  if (!pspec || pspec->value_type != G_TYPE_BOOLEAN)
-    {
-      g_warning ("Choosers of type `%s' do not support showing numbers",
-		 G_OBJECT_TYPE_NAME (chooser));
-
-      return FALSE;
-    }
-  
-  g_object_get (chooser, "show-numbers", &show_numbers, NULL);
-  
-  return show_numbers;
-}
-
-
-/**
  * gtk_recent_chooser_set_sort_type:
  * @chooser: a #GtkRecentChooser
  * @sort_type: sort order that the chooser should use
diff --git a/gtk/gtkrecentchooser.h b/gtk/gtkrecentchooser.h
index 2b5dd7e..b32a1f4 100644
--- a/gtk/gtkrecentchooser.h
+++ b/gtk/gtkrecentchooser.h
@@ -138,11 +138,6 @@ gboolean          gtk_recent_chooser_get_local_only      (GtkRecentChooser  *cho
 void              gtk_recent_chooser_set_show_tips       (GtkRecentChooser  *chooser,
 							  gboolean           show_tips);
 gboolean          gtk_recent_chooser_get_show_tips       (GtkRecentChooser  *chooser);
-#ifndef GTK_DISABLE_DEPRECATED
-void              gtk_recent_chooser_set_show_numbers    (GtkRecentChooser  *chooser,
-							  gboolean           show_numbers);
-gboolean          gtk_recent_chooser_get_show_numbers    (GtkRecentChooser  *chooser);
-#endif /* GTK_DISABLE_DEPRECATED */
 void              gtk_recent_chooser_set_show_icons      (GtkRecentChooser  *chooser,
 							  gboolean           show_icons);
 gboolean          gtk_recent_chooser_get_show_icons      (GtkRecentChooser  *chooser);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]