[gtk+/gtk-2-90: 77/158] Remove deprecated code: GtkCheckMenuItem



commit b93883f0f1abc925df084ab9bb9e0ccac033e1a1
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Fri Oct 9 19:05:38 2009 +0200

    Remove deprecated code: GtkCheckMenuItem

 docs/reference/gtk/gtk-sections.txt           |    2 --
 docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml |   19 -------------------
 gtk/gtk.symbols                               |    3 ---
 gtk/gtkcheckmenuitem.c                        |   11 -----------
 gtk/gtkcheckmenuitem.h                        |    6 ------
 tests/testgtk.c                               |    5 -----
 6 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt
index 6b487b1..6a8d01c 100644
--- a/docs/reference/gtk/gtk-sections.txt
+++ b/docs/reference/gtk/gtk-sections.txt
@@ -654,10 +654,8 @@ GtkCheckMenuItem
 gtk_check_menu_item_new
 gtk_check_menu_item_new_with_label
 gtk_check_menu_item_new_with_mnemonic
-gtk_check_menu_item_set_state
 gtk_check_menu_item_get_active
 gtk_check_menu_item_set_active
-gtk_check_menu_item_set_show_toggle
 gtk_check_menu_item_toggled
 gtk_check_menu_item_get_inconsistent
 gtk_check_menu_item_set_inconsistent
diff --git a/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml b/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml
index 7ee3e06..8d83732 100644
--- a/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml
+++ b/docs/reference/gtk/tmpl/gtkcheckmenuitem.sgml
@@ -102,14 +102,6 @@ Creates a new #GtkCheckMenuItem with a label.
 @Returns: 
 
 
-<!-- ##### MACRO gtk_check_menu_item_set_state ##### -->
-<para>
-Sets the active state of the menu item's check box.
-</para>
-
- Deprecated: Use gtk_check_menu_item_set_active() instead.
-
-
 <!-- ##### FUNCTION gtk_check_menu_item_get_active ##### -->
 <para>
 
@@ -128,17 +120,6 @@ Sets the active state of the menu item's check box.
 @is_active: boolean value indicating whether the check box is active.
 
 
-<!-- ##### FUNCTION gtk_check_menu_item_set_show_toggle ##### -->
-<para>
-Controls whether the check box is shown at all times.
-Normally the check box is shown only when it is active or while the 
-menu item is selected.
-</para>
-
- menu_item: a #GtkCheckMenuItem.
- always: boolean value indicating whether to always show the check box.
-
-
 <!-- ##### FUNCTION gtk_check_menu_item_toggled ##### -->
 <para>
 Emits the GtkCheckMenuItem::toggled signal.
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 8fb3c0b..97a7702 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -708,9 +708,6 @@ gtk_check_menu_item_new_with_mnemonic
 gtk_check_menu_item_set_active
 gtk_check_menu_item_set_draw_as_radio
 gtk_check_menu_item_set_inconsistent
-#ifndef GTK_DISABLE_DEPRECATED
-gtk_check_menu_item_set_show_toggle
-#endif
 gtk_check_menu_item_toggled
 #endif
 #endif
diff --git a/gtk/gtkcheckmenuitem.c b/gtk/gtkcheckmenuitem.c
index 8c77d61..754382f 100644
--- a/gtk/gtkcheckmenuitem.c
+++ b/gtk/gtkcheckmenuitem.c
@@ -283,17 +283,6 @@ gtk_check_menu_item_toggle_size_request (GtkMenuItem *menu_item,
 }
 
 void
-gtk_check_menu_item_set_show_toggle (GtkCheckMenuItem *menu_item,
-				     gboolean          always)
-{
-  g_return_if_fail (GTK_IS_CHECK_MENU_ITEM (menu_item));
-
-#if 0
-  menu_item->always_show_toggle = always != FALSE;
-#endif  
-}
-
-void
 gtk_check_menu_item_toggled (GtkCheckMenuItem *check_menu_item)
 {
   g_signal_emit (check_menu_item, check_menu_item_signals[TOGGLED], 0);
diff --git a/gtk/gtkcheckmenuitem.h b/gtk/gtkcheckmenuitem.h
index b6f2e9a..2361c05 100644
--- a/gtk/gtkcheckmenuitem.h
+++ b/gtk/gtkcheckmenuitem.h
@@ -91,12 +91,6 @@ void       gtk_check_menu_item_set_draw_as_radio (GtkCheckMenuItem *check_menu_i
 gboolean   gtk_check_menu_item_get_draw_as_radio (GtkCheckMenuItem *check_menu_item);
 
 
-#ifndef GTK_DISABLE_DEPRECATED
-void	   gtk_check_menu_item_set_show_toggle (GtkCheckMenuItem *menu_item,
-						gboolean	  always);
-#define	gtk_check_menu_item_set_state		gtk_check_menu_item_set_active
-#endif
-
 G_END_DECLS
 
 #endif /* __GTK_CHECK_MENU_ITEM_H__ */
diff --git a/tests/testgtk.c b/tests/testgtk.c
index a8d5144..bfe5734 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -4155,11 +4155,6 @@ create_menu (GdkScreen *screen, gint depth, gint length, gboolean tearoff)
       menuitem = gtk_radio_menu_item_new_with_label (group, buf);
       group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (menuitem));
 
-#if 0
-      if (depth % 2)
-	gtk_check_menu_item_set_show_toggle (GTK_CHECK_MENU_ITEM (menuitem), TRUE);
-#endif
-
       gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
       gtk_widget_show (menuitem);
       if (i == 3)



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