static void gtk_recent_action_class_init (GtkRecentActionClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GtkActionClass *action_class = GTK_ACTION_CLASS (klass); g_type_class_add_private (klass, sizeof (GtkRecentActionPrivate)); gobject_class->finalize = gtk_recent_action_finalize; gobject_class->dispose = gtk_recent_action_dispose; gobject_class->set_property = gtk_recent_action_set_property; gobject_class->get_property = gtk_recent_action_get_property; action_class->activate = gtk_recent_action_activate; action_class->connect_proxy = gtk_recent_action_connect_proxy; action_class->disconnect_proxy = gtk_recent_action_disconnect_proxy; action_class->create_menu_item = gtk_recent_action_create_menu_item; action_class->create_tool_item = gtk_recent_action_create_tool_item; action_class->create_menu = gtk_recent_action_create_menu; action_class->menu_item_type = GTK_TYPE_IMAGE_MENU_ITEM; action_class->toolbar_item_type = GTK_TYPE_MENU_TOOL_BUTTON; _gtk_recent_chooser_install_properties (gobject_class); g_object_class_install_property (gobject_class, PROP_SHOW_NUMBERS, g_param_spec_boolean ("show-numbers", P_("Show Numbers"), P_("Whether the items should be displayed with a number"), FALSE, G_PARAM_READWRITE)); }
static void gtk_recent_action_class_init (GtkRecentActionClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GtkActionClass *action_class = GTK_ACTION_CLASS (klass); gobject_class->finalize = gtk_recent_action_finalize; gobject_class->dispose = gtk_recent_action_dispose; gobject_class->set_property = gtk_recent_action_set_property; gobject_class->get_property = gtk_recent_action_get_property; action_class->activate = gtk_recent_action_activate; action_class->connect_proxy = gtk_recent_action_connect_proxy; action_class->disconnect_proxy = gtk_recent_action_disconnect_proxy; action_class->create_menu_item = gtk_recent_action_create_menu_item; action_class->create_tool_item = gtk_recent_action_create_tool_item; action_class->create_menu = gtk_recent_action_create_menu; G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_class->menu_item_type = GTK_TYPE_IMAGE_MENU_ITEM; G_GNUC_END_IGNORE_DEPRECATIONS; action_class->toolbar_item_type = GTK_TYPE_MENU_TOOL_BUTTON; _gtk_recent_chooser_install_properties (gobject_class); /** * GtkRecentAction:show-numbers: * * Whether the items should be displayed with a number. * * Deprecated: 3.10 */ g_object_class_install_property (gobject_class, PROP_SHOW_NUMBERS, g_param_spec_boolean ("show-numbers", P_("Show Numbers"), P_("Whether the items should be displayed with a number"), FALSE, G_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY)); }