Commit c9dae4c6 authored by Javier Jardón Cabezas's avatar Javier Jardón Cabezas Committed by Javier Jardón

Remove deprecated code: GtkCheckMenuItem

parent 51079eb1
......@@ -655,10 +655,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
......
......@@ -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.
......
......@@ -709,9 +709,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
......
......@@ -282,17 +282,6 @@ gtk_check_menu_item_toggle_size_request (GtkMenuItem *menu_item,
*requisition = indicator_size + toggle_spacing;
}
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)
{
......
......@@ -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__ */
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment