mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
radiomenuitem: Remove GtkActivatable code
This commit is contained in:
parent
efe4a36746
commit
24866c5d12
@ -27,7 +27,6 @@
|
||||
#include "gtkcheckmenuitemprivate.h"
|
||||
#include "gtkmarshalers.h"
|
||||
#include "gtkradiomenuitem.h"
|
||||
#include "deprecated/gtkactivatable.h"
|
||||
#include "gtkprivate.h"
|
||||
#include "gtkintl.h"
|
||||
#include "a11y/gtkradiomenuitemaccessible.h"
|
||||
@ -504,19 +503,10 @@ gtk_radio_menu_item_activate (GtkMenuItem *menu_item)
|
||||
GtkRadioMenuItemPrivate *priv = radio_menu_item->priv;
|
||||
GtkCheckMenuItem *check_menu_item = GTK_CHECK_MENU_ITEM (menu_item);
|
||||
GtkCheckMenuItem *tmp_menu_item;
|
||||
GtkAction *action;
|
||||
GSList *tmp_list;
|
||||
gboolean active;
|
||||
gint toggled;
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
|
||||
action = gtk_activatable_get_related_action (GTK_ACTIVATABLE (menu_item));
|
||||
if (action && gtk_menu_item_get_submenu (menu_item) == NULL)
|
||||
gtk_action_activate (action);
|
||||
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
|
||||
toggled = FALSE;
|
||||
|
||||
active = gtk_check_menu_item_get_active (check_menu_item);
|
||||
|
Loading…
Reference in New Issue
Block a user